Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compiler does not catch this syntax error, bug?
Message
 
To
07/05/2004 23:12:18
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00901990
Message ID:
00902507
Views:
12
>Hi Dawa,
>
>Actually, because of the macros, that line is not compiled during compilation time, but during runtime. That explains why the error is not catched.
>
Hi, Walter,

Thanks for the reply.

That makes very much sense to me. But it seems to me that it should catch the error on line 6 in the code below regardless of macro subtitution of the alias name. Clearly, a comma right in front of FROM is incorrect syntactically.
*bug.prg
1. LPARAMETERS m.lpcAlias,m.lpnid
2.	SELECT &lpcAlias..filenum ;
3.		&lpcAlias..a, ;
4.		&lpcAlias..b ;
5.		&lpcAlias..c, ;
6.		&lpcAlias..d, ; && This line
7.		FROM  &lpcAlias ;
8.		ON &lpcAlias..id = m.lpnid;
9.		INTO CURSOR curTemp NOFILTER
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