Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SetFocus Method for Control Not executing
Message
De
16/03/1998 11:29:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/03/1998 11:15:45
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00084832
Message ID:
00084840
Vues:
30
>I have a form with 2 labels, 2 text boxes and 2 command buttons. The form's ShowWindow is set to 1, and WindowType is set to modal. When I try and call the SetFocus Method for the TextBoxes or Command Buttons, the SetFocus is NOT seen as a VFP Keyword. In code, ThisForm.txtPassWord.SetFocus, ThisForm is keyword color, txtPassWord is string color and SetFocus is string Color. I tried nmoving my code from the LostFocus Method into the Valid Method but then I get and error on not being able to use SetFocus in the WHEN or VALID methods. In the debugger, this error comes from a custom messagebox form which uses setfocus.
>
>Any ideas for this?
>
>Fred Lauckner
><>
Couldn't understand "ThisForm is keyword color, txtPassWord is string color and SetFocus is string Color" at all. But are you trying to setfocus in "ThisForm.txtPassWord.LostFocus" ? If so w/o a "nodefault" it would fail.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform