Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APPEND FROM problems
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00407143
Message ID:
00409915
Views:
22
>Jim,
>
>I tried your suggestion to no avail. lcFile evaluates to "D:\inventory.txt" so having a space is not the problem. I have also tried changing lcFile = ALLTRIM(LOCFILE("Inventory.txt","TXT","Select the inventory file.")) to lcFile = '"'" + ALLTRIM(LOCFILE("Inventory.txt","TXT","Select the inventory file.")) + "'" with no success. What gets me is that I can enter APPEND FROM D:\Inventory.txt TYPE DELIMITED WITH TAB at the command line and it works(!), but if I paste the same command into the click event (that's where all of this code resides) of my button and try to close the code window VFP warns that the line contains unrecognized phrase/keyword. Thanks again for your help.

If I may venture a guess, since you are seeing the error in the form designer even before running the form, you have a bad, but invisible, character in the command or a corrupt form.

Have you tried creating a new buton on the form and typing, not copying, the code into the new button? If that doesn't work try creating a new form with a new button and typing, not copying the code.

I have seen wierd things when .scx files become corrupt.
Previous
Reply
Map
View

Click here to load this message in the networking platform