Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I get the right record to show?
Message
 
 
À
15/02/2008 15:14:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01293068
Message ID:
01293070
Vues:
23
>Help!
>
>There's something I'm missing in getting a teensy form to refresh when I'm adding a new record.
>
>My form has a few fields -- the first of which is a combo box to select the record to display. (It has a rowsourcetype of 6, with rowsource showing two fields from my table).
>
>I also have a button which says "add new record". This button adds a blank record. (Right now, that's all it does)
>
>What I'd like to have happen is that this blank record then populates the screen. I've been unable to get this to occur. Instead, I get the record that had been the last record.
>
>What else should I be adding into the Click method of the command button? This.parent.refresh is of no help.

If your controls are bound to your table fields, then adding a new record and doing thisform.refresh() should work. Unless something is changing a record pointer somewhere.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform