Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Find code from 10 fields
Message
De
08/08/2006 04:14:46
 
 
À
08/08/2006 04:07:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01143440
Message ID:
01143714
Vues:
6
>And here is another question
>
>Table1 has 10 numeric fields, Field names are different
>The code=1301002 is located in some fields.
>I want to replace it with 1501002,
>
>How to findout code=1301002 from whole table?
>Table1 has no index order set.
>
>I write following procedure but fifth line shows following error message
>"Operator/Operand type mismatch"
>(Please note all fields in table1 are numeric having numeric data)
>
>SELECT Table1
>lnTotalFields = AFIELDS(aryFields)
>FOR lnCounter = 1 TO lnTotalFields
> lcfieldname = aryFields(lnCounter,1)
> IF lcfieldname= 1301002
> REPLACE lcfieldname With 1501002
> ENDIF
>ENDFOR
>
>
>Please edit above code or suggest some others

Try the code I sent you!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform