General information
Category:
Coding, syntax & commands
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only