Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RECNO() and sql select
Message
From
24/11/2006 06:34:26
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
24/11/2006 04:05:07
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01172207
Message ID:
01172232
Views:
21
>Hi
>
>When you use recno() in select statements, is it reliable?
>
>In some old Fox2.6 apps we have duplicate keys and I need to differentiate between them.
>
>Thanks
>Kev

Kevin,
There is a high level of reliability but not enough to cover all cases (even works with joins provided you really know what you're doing but we are not always carefull in coding to remember slight nuances - so accept unreliable if used with joins).
You can still have your recno() from those tables if you use multiple SQL. ie:

select recno() as t1recno, * from table1 into cursor crs1 nofilter
select recno() as t2recno, * from table2 into cursor crs2 nofilter
* now work with cr1,crs2

However you're saying "keys" and you might not need recno() at all.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform