Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding a value
Message
From
01/05/2010 16:34:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
01/05/2010 04:08:05
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
01462456
Message ID:
01462671
Views:
47
>Naomi
>
>I have tried it but am getting an error message," Table has no index order set". I have used the line
>
>
>Index on bcode to mcode
>
Also, don't use this syntax. Use TAG MCODE instead. This will create a permanent index. The index will be called MCODE, but it will be part of the file MyTable.CDX (assuming the table is called MyTable.DBF). Here is an example of how to use it:
* The following must be done only once. You can also create indexes interactively (with MODIFY STRUCTURE).
index on bcode TAG mcode

* In your main program:
use MyTable order MCode
* Or, alternatively:
use MyTable
set order to MCode

seek lnValue
if found()
  * Do something with the record here

* Alternatively:
if seek(lnValue)
  * Do something with the record here
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Reply
Map
View

Click here to load this message in the networking platform