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:
00902095
Views:
20
David,

I could get rid of the macro if I am only including fields from one cursor/table which is in this case, so your solution is correct. But when I select them from multiple tables or cursors, which I have to in most cases, then I need to include the alias names lest there should be same field names with different values.

Dawa

>Dawa,
>
>Get rid of the & macros all together:
>
>
select filenum, ;
>      a, ;
>      b, ;
>      c, ;
>      d ;
>   from (lpcAlias) ;
>   into cursor curTemp nofilter ;
>   where id = m.lpnid
>
>
>>
>>*bug.prg
>>LPARAMETERS m.lpcAlias,m.lpnid
>>		SELECT &lpcAlias..filenum ;
>>			&lpcAlias..a, ;
>>			&lpcAlias..b ;
>>			&lpcAlias..c, ;
>>			&lpcAlias..d, ;
>>			FROM  &lpcAlias ;
>>			ON &lpcAlias..id = m.lpnid;
>>			INTO CURSOR curTemp NOFILTER
>>
>>
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