Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form with Insert
Message
 
To
10/02/2000 06:39:33
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00329908
Message ID:
00329914
Views:
26
Kevin,

Change the code in the insert method to remove the SetFocus call. Make the first control in the tab order the one you want to have focus. IN y9our Init of the form call the Insert method if necessary and then let VFP place focus on Tab order 1 control naturally. You can call the Insert method from other places (like a command button) and the issue the SetFocus call right after the Insert call;
* Command Button Click event
Thisform.Insert()
Thisform.Text1.Setfocus()
In the form's Init you would simply;
* Form's Init Event
LPARAMETERS tcArg
IF tcArg = 'Insert'
   Thisform.Insert()
ENDIF
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform