Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Not a character expression
Message
From
01/06/2010 22:23:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01466967
Message ID:
01467001
Views:
46
>Hi everybody,
>
>Do you know why would I get the error 'Not a character expression' on this line of code
>
> erase file (addbs(oAppObj.cProgDataDir) + 'batchprt.dbf')
>
>the oAppObj.cProgDataDir contains a valid path.
>
>Thanks in advance.
>
>UPDATE. Figured this out. It was the incorrect syntax (should be ERASE (fileName)). The error message was not helpful.

In any case, it makes debugging easier if you put the expression for the filename into a variable.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform