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:
00902872
Views:
17
David,

It's true that I only need one &. Let's say that I made mistake in typing as follows:
function GetNames(lpcAlias,lpcIntoCursor,lpcCondition)
 select Upper(name as Name ;
 from (lpcAlias) ;
 where &lpcCondition ;
 into cursor (pcIntoCursor)
endfunc
The compiler is not going to tell me that a parenthesis ) is missing for upper function.
I would improve my code such as reducing & etc.. What I want from the compiler is a warning, because it may not be an error prior to the macro substitution. This would be helpful, don't you think?

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