Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT & recno()
Message
From
16/12/1998 15:34:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00168223
Message ID:
00168242
Views:
30
>>Is there any way to have SELECT selects RECNO()? TO make it harder I have more then one table in this SELECT statement.
>>TIA Mark
>
>You could try:
>
>Select ..., Recno("Table1") as RecNo1, Recno("Table2") as RecNo2 ...
>
>Something like:
>
>Select table1.*, recno("Table1") as RecNo1, ...
>
>would most likely not work. You have to explicitly list all the fields you want.

Nope, putting RECNO('alias') will never work during the SELECT. Once the SELECT code kicks in, there is no guarantee that FP will use your alias internally. Edward's suggestion to do it in two passes will work.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform