Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Am I misusing TableUpdate()?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00261437
Message ID:
00264874
Views:
55
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform