Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compute many operations
Message
 
 
To
09/09/2004 19:10:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00939290
Message ID:
00940888
Views:
21
>hi
>i'll try as under
>i get message variable"rn" is not found
>
> select table2 && Note, that we need to open table2 only once, not in the scan
>     append from dbf("crsRand")
>       select crsRand
>scan
>   goto rn in Table1 && move record pointer to rn record in table1
>   delete in Table1
>endscan
>
>    *delete from table1 where recno() in (select rn from crsRand)
>    *use in crsRand && we do not need our crsRand anymore
>
>
>thanks

Ok, how about?
local lnRecNum
select crsRand
scan
  lnRecNum = crsRand.rn
   goto m. lnRecNum in Table1 && move record pointer to rn record in table1
   delete in Table1
endscan
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform