Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Am I misusing TableUpdate()?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00261437
Message ID:
00264874
Vues:
54
Steve,

n my tests even though the documentation says you can use the field number, the setfldstate fails everytime I use the field number and succeeds when I use the field name. Try something like this;
laFlds = AFIELDS("CustUpd")
FOR lnCnt = 1 TO ALEN(laFlds)
    DO CASE
       CASE GetFldState(laFlds(lnCnt,1) = "4"
            IF NOT SetFldState(laFlds(lnCnt,1),2,"CustUpd")
                * Failed
            ENDIF
...
Also, change the tableupdate to;
IF NOT TableUpdate(...)
   * Deal with a failure

ENDIF
Also, why are those two variables declared PUBLIC? PUBLIC vars are a disaster waiting to happen.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform