Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler does not catch this syntax error, bug?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901990
Message ID:
00902601
Views:
21
David,

>It can't. If a line of code contains any & macros, that line is not parsed/compiled until runtime, because the actual string being substituted is not known until then.

You got that right. This seems to be what the compiler is behaving right NOW.

However, a compiler should be able to detect following error without doing a macro substitution.
SELECT &lcAlias..*,from &lcAlias INTO CURSOR curabc
I cannnot think of any possible value in the lcAlias that would make the above statement correct.
Could you?

Dawa
Dawa Tsering


"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."

- Ephesians 4:29-30 NIV

Dare to Question -- Care to Answer

Time is like water in a sponge, as long as you are willing you can always squeeze some.

--Lu Xun, Father of Modern Chinese Literature

Previous
Next
Reply
Map
View

Click here to load this message in the networking platform