Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Set Focus --- NOT WORKING!
Message
De
07/05/1998 14:35:11
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
07/05/1998 14:20:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00097716
Message ID:
00097798
Vues:
27
>The NODEFAULT seems to work. Except for now the other page ADD NEW doesn't work. That was where my original SETFOCUS problem was.
>
>ADDNEW METHOD
>
>THISFORM.AddSetFocus = .T.
>THISFORM.adding = .T.
>THISFORM.PageFrame1.Page1.SETFOCUS()
>
>
>PAGE1.SETFOCUS METHOD
>
>IF THISFORM.AddSetFocus
> THISFORM.AddSetFocus = .F.
> THISFORM.PageFrame1.Page1.txtVendor.SETFOCUS()
>ENDIF
>
>
>This worked for the other page, but the Page1 it did not. Adding the NODEFAULT after the txtVendor.SETFOCUS() works when you are on page1, but not the original page. When you are at the original page and press the ADD NEW button, the WHEN Method for TxtVendor (on the other page) fires endlessly. (It is just a Wait Window to tell me the When is firing) I have to Ctrl-Alt-Delete.
>
>Any suggestions?
Tim,
This is a when returning .f. on pageframe.pages(1).anyfield ? If so it's a bug don't try to fix via nodefault. Try to move when code to somewhere else (ie: gotfocus).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform