Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding a value
Message
De
01/05/2010 16:34:02
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
01/05/2010 04:08:05
Chandan Chakraborty
Bangiya Gramin Vikash Bank
Raiganj, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
01462456
Message ID:
01462671
Vues:
46
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform