Device won't load tables

Discussion in 'Questions (Windows Mobile)' started by michaelm, Sep 10, 2009.

  1. michaelm

    michaelm Member Licensed User

    I have tried the loadcsv and loadxml functions and I keep getting errors. I have checked the format and everything is correct. The csv and xml files have been created and have data stored in them. They are named Data.csv and Data.xml and stored in my documents. I have downloaded the files in this forum to see the detail of the error, but that doesn't work either. I'm probably not saving them to the correct place. At this point I have tried everything short of taking a hammer to the device. I'm going to the garage to find my hammer, but I will check for a response before attempting that approach. :sign0094:
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    Do you get any error message?
    Can you post your code and CSV tables?
     
  3. michaelm

    michaelm Member Licensed User

    This works fine on the desktop, but not on the device.


    Sub Globals
    'Declare the global variables here.
    End Sub
    Sub App_Start

    Form10.Show
    AddTable ("Form10", "Table10", 80, 5, 140, 120)
    Table10.loadcsv ("FoodDat.csv", ",", False, True)
     
  4. michaelm

    michaelm Member Licensed User

    The csv file did not attach to my last post. here is a .txt version
     
  5. Erel

    Erel Administrator Staff Member Licensed User

    Works fine here. What error do you get?
     
  6. michaelm

    michaelm Member Licensed User

    The entire error reads:

    An error occurred on the sub
    main.app_start.


    Line number 8

    Table10.loadCSV
    ("fooddat.csv",",",False, True)
    Error Description:
    An error message cannot
    be displayed because an
    optional resource assembly
    containing it cannot be found
    Continue?

    I found another post with the same error description and downloaded the file, but I still cannot see the error description. I probably have the file in the wrong place, but I cannot find anything that tells me where to save it to.

    Also, I am unable to edit the this file's code on the device because it just types over everything. I cannot insert text although I can create a new file and insert text on it.

    What am I doing wrong?
     
  7. michaelm

    michaelm Member Licensed User

    OK. I figured out the table loading issue. I just made a new copy on the desktop and moved it to the phone along with the csv files.

    I still need help with the editing issue though. Is there a limit to the amount of lines on the device that could cause this?
     
  8. Erel

    Erel Administrator Staff Member Licensed User

    It is limited to 64,000 characters. You should use additional code modules for longer code (recommended for shorter code as well).
     
  9. michaelm

    michaelm Member Licensed User

    Thank you
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice