Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select RECNO() puzzler
Message
From
14/08/1998 16:36:49
 
 
To
14/08/1998 16:28:17
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00126709
Message ID:
00127032
Views:
30
>RECNO() is not reliable when SELECTing from multiple tables. This is documented in Help.
>
>Craig,
>
>Actually I looked through the help documentation, the M$/KB and some printed references I have, but saw nothing about the results of a RECNO() when selected from multiple tables. Do you remember where you saw the reference.?
>
>regards,

From the "SELECT - SQL" help:

Important Keep the following information in mind when creating join conditions:

· If you include two tables in a query and don’t specify a join condition, every record in the first table is joined with every record in the second table as long as the filter conditions are met. Such a query can produce lengthy results.
· Be careful when using, in join conditions, functions such as DELETED( ), EOF( ), FOUND( ), RECCOUNT( ), and RECNO( ), which support an optional alias or work area. Including an alias or work area in these functions might yield unexpected results. SELECT doesn’t use your work areas; it performs the equivalent of USE ... AGAIN. Single-table queries that use these functions without an optional alias or work area will return proper results. However, multiple-table queries that use these functions — even without an optional alias or work area — might return unexpected results.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform