Hi Grady,
Use (FileName) IN 2
is safer code, but you don't test if user cancel dialog.
FileName = Getfile("dbf"," Select the file ","Load")
If !EMPTY(FileName)
Use (FileName) IN 2
endif
or FileName contain any "bad" character (!)
MartinJ
>Ignore this - I solved it myself . . . . sheesh!
>
>I have an app that runs fine on the development machine, but when I install it on a user's machine I get the error "Command contains unrecognised phrase/keyword" I've been tinkering with this for an hour or so, with no success. So, here I am at the well, once again.
>
>Here is the offending code:
>
>
>FileName = Getfile("dbf"," Select the file ","Load")
>Use (FileName) IN 2
>
>I have also tried
>
>FileName = Getfile("dbf"," Select the file ","Load")
>Use &FileName IN 2
>