>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)