Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select RECNO() puzzler
Message
From
19/08/1998 09:35:06
 
 
To
16/08/1998 06:01:35
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00126709
Message ID:
00128088
Views:
39
Of course it works that way. The others have posted the theory here, so I won't repeat it. Just a shorthand workaround:


SELECT *, RECNO() AS CustRecNO;
FROM customer Cust;
WHERE Cust.custid = "001" ;
INTO Cursor Tmp1

SELECT tmp1.*, < ord.somefield(s) >;
FROM Tmp1 Cust, order Ord;
WHERE Cust.custid = ord.custid AND ;
Ord.orderid < "999"

Now the final cursor will have the CustRecNo properly filled. Recno() in SQL select works on single table queries only.


Dragan,

Thanks. Like all good explanations, the answer is obvious when explained well.

Regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Previous
Reply
Map
View

Click here to load this message in the networking platform