Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine relative record position
Message
From
23/10/1998 08:36:14
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00149770
Message ID:
00149786
Views:
23
>I'm selecting two records in a table so I can copy or delete all the records between each of the selected record. My problem comes when the table is indexed. Is there a way to do this? I'm having a problem determining if the second record is before or after the first record. I'm using 5.0a. TIA
lcKey = key()
* On one of recs
luValue1 = eval(lcKey)
go nOtherRec
luValue2 = eval(lcKey)
select * from mytabel ;
  where &lcKey between ;
  min(luValue1,luValue2) ;
  and  max(luValue1,luValue2)
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
Next
Reply
Map
View

Click here to load this message in the networking platform