Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
More fast
Message
From
20/12/2004 06:15:47
 
 
To
20/12/2004 06:10:42
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00970535
Message ID:
00970539
Views:
20
If you have a tag on flag, locate is as fast as you can get it. However, remember that, depending on different parameters, you may lock the record. To avoid that I usually prefer
SELECT * FROM newdnc WHERE flag=0 into cursor curTemp
if _tally>0
  thisform.text4.Value=curtemp.char2
  thisform.text7.Value=curtemp.char3
  thisform.text6.Value=curtemp.char4
  thisform.text8.Value=curtemp.char5
  thisform.text5.Value=curtemp.char6
else
   =MESSAGEBOX("not found")
endif
>hi all,
>
>i have table with more than 10,000 records, at network(many users).
>
>i need to found record with flag=0,to get all information at myform
>
>i useto locate to finde it as under,maybe somthing else faster.
>any idea
>
>USE newdnc
>LOCATE FOR flag=0
>if found()
>    thisform.text4.Value=char2
>    thisform.text7.Value=char3
>    thisform.text6.Value=char4
>    thisform.text8.Value=char5
>    thisform.text5.Value=char6
>else
>    =MESSAGEBOX("not found")
>endif
>
>thanks.
>m.qasem
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform