Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SETFLDSTATE()
Message
De
24/12/1999 12:09:13
 
 
À
24/12/1999 11:51:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00308418
Message ID:
00308421
Vues:
25
>Hi Folks,
>
>I am trying to get an appended record in a view to looked like it was an existing edited one. The current GETFLDSTATE(-1) returns 34444444, and I want that to change to 12222222. However, every time I try to SETFLDSTATE() a field, I get a Function argument, type or count is invalid.
>
>Although it says nothing about restrictions in the Help file, my experiments suggest that 3s can only be interchanged with 4s, and 1s with 2s. Is this correct, and if so, is there another way to fool VFP that a new record is an existing one?
>
>TIA, Kevin

This is my observation as well. I have found no way around it. Even if you could, you cannot get rid of the new record's negative record number, which is what I suspect VFP looks at to determine what update method to use.

If you are trying to overwrite a record in the database, why don't you pull that record into the view first?
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform