Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Adding the first new record...
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00541928
Message ID:
00541935
Vues:
11
This message has been marked as the solution to the initial question of the thread.
>Hi folks - I seem to have a problem that I keep experiencing. I create my forms and the texboxes etc. I create my tables and views. I link the text boxes to the views. Everything is OK except when I add the first record in an empty table. I have my add button that clears the view and appends a blank record but I can't seem to get the first textbox to recieve focus without clicking in it. As soon as I have a record in the table and add another it's fine! Anyone experienced this or nop of a solution?

Chris,
When you have no records in the view and the textbox is bound to it, the textbox is disabled. Even if you attempt to set focus to it, it will fail. After you addpend the blank record, issue a form refresh (or simply a textbox.Refresh) so the textbox knows there is now data under it and then issue a Textbox.SetFocus.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform