Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Best Placement of Code
Message
From
10/11/2021 09:03:50
 
 
To
10/11/2021 08:36:05
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01679489
Message ID:
01682689
Views:
43
No problem, actually I think it's a pity that quotes aren't enabled as default.

>Thanks. my bad.
>
>>Jeffrey,
>>
>>please Enable auto quote. Press the little "box" just above my (or your, depending on what you read) flag, and you will see several options.
>>
>>>Tracking. Thanks.
>>>
>>>Add the line I mentioned, but change the name of the array from aDV to aDataValues. Or simply use the other code that uses aDV as the name of the array instead.
>>>
>>>>Thanks. But what do you mean I must change the name of the array. Why can I use the aDV array? Isn't not working but that could be why.
>>>>
>>>>Looks like the code I referred to, isn't complete. This is another link which refers to the same problem, and with almost identical code: https://fox.wikis.com/wc.dll?Wiki~AppendCSV~Wiki
>>>>
>>>>You will note that the code in this link has one "extra" line, "DIMENSION aDV[nFieldCount]". You will need the same line, but you must change the name of the array,
>>>>
>>>>
>>>>>Ahhhhh.... aDataValues is the only one not populating with a value.
>>>>>
>>>>>>Thanks. It's the code:
>>>>>> aDataValues[nField] = ;
>>>>>> LEFT(cString,nCommaPos-1)
>>>>>>
>>>>>>>
>>>>>>>I apologize up front if this is wrong to message you directly, ...Wanted to drop you aline directly instead of posting to the All group folks. I have a problem getting my excel csv file added to my table (it has some memo fields to capture long texts in certain cells. Someone pointed me to your article from 2003 amount appending memos. The code errors off with syntax error
>>>>>>>
>>>>>>>I'm attaching the code and the error message.
>>>>>>
>>>>>>Start the debugger, and tell us exactly which variable is not found.
>>>>>>
>>>>>>NB! Please don't present pictures of code, show the actual code as text instead.
>>>>>
>>>>>so which one of those is missing?
>>>>>- [ ] aDataValues
>>>>>- [ ] nField
>>>>>- [ ] cString
>>>>>- [ ] nCommaPos
>>>>>?
Previous
Reply
Map
View

Click here to load this message in the networking platform