Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETFLDSTATE()
Message
De
29/08/2000 00:42:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SETFLDSTATE()
Divers
Thread ID:
00410131
Message ID:
00410131
Vues:
45
...errrr....doesn't.

I haven't tried to use this function since VFP 3.0 but a recent project forced me to rethink it. I have a opt. table buffered view with 1 or more rows showing numeric data in a grid. I have to provide a mechanism to run a conversion on the number and I don't want to affect the current GETFLDSTATE status or revert the table because some changes may have already been done. So I came up with the idea of scanning through the records, storing the current field state values via GETFLDSTATE to an array, making the change using a SQL-UPDATE to the view, and then restoring the old field states with a loop through the array and SETFLDSTATE.

Sound simple?

Ain't working. The changed fields are showing "2" after the SETFLDSTATE. I can do this all day from the Command Window and no problems occur.

What the heck am I overlooking?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform