Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why?
Message
 
 
To
19/02/2019 11:14:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Why?
Miscellaneous
Thread ID:
01666551
Message ID:
01666556
Views:
78
(lc_xls) is Name Expression. A Name expression can replace a name in any command or function.
FIELDS clause is not a name but a list of column names. As such it cannot be replaced with Name Expression


>This works:
>
>lc_xls = "C:\myfile.xls"
>lc_fileldlist = "invno, invdte, invamt"
>COPY TO (lc_xls) FIELDS &lc_fieldlist TYPE xl5
>
>This gives a syntax error:
>lc_xls = "C:\myfile.xls"
>lc_fileldlist = "invno, invdte, invamt"
>COPY TO (lc_xls) FIELDS (lc_fieldlist) TYPE xl5
>
>Why?
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform