Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus
Message
 
À
24/08/1998 18:42:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00129505
Message ID:
00129541
Vues:
20
>Hi All,
>
>I have a form in a pageframe. On the form the first textbox
>is 'Category', and a button for Adding a new form. In the
>Click method of the 'New' button I would like to SetFocus to
>TextBox 'Category'. The documentation I have states that the
>syntax should be Control.SetFocus(Category.SetFocus). But that
>isn't working. I'm getting an message that Category is not found
>even when I reference it as 'ThisForm.PageFrame1.Page1.Category.SetFocus().
>
>Any help would be appreciated.
>
>Regards,
>
Paige,

The textbox has a Name property, check it out and fidn out what the name of the textbox is. Then you canuse (assuming the textbox is in the page and not ON the page);

THISFORM.PageFrame1.Page1.TextBoxName.SetFocus()

If you are using VFP 5.0, you can right click in teh editor and choose List Objects, from the list select you textbox and the reference magically appears in the editor for you.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform