Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SetFocus Method for Control Not executing
Message
From
16/03/1998 11:27:42
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00084832
Message ID:
00084838
Views:
27
>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
><>

Could you elaborate? Do you want to say that Thisform.txt1.setfocus() generates an error? What is error message in this case?
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform