Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETFLDSTATE()
Message
De
29/08/2000 10:12:09
 
 
À
29/08/2000 00:42:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00410131
Message ID:
00410237
Vues:
16
>...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?

Does taking the grid out of the picture help? I would venture a guess that some UI element is switching it back on you...
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform