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:
00329909
Views:
16
Try setting a form property in the init and then the activate calls the insert if the property is set, then resets the property.

>I have a form which I want to call with an 'Insert' parameter which tells it to insert a record immediately on loading the form.
>
>I have an Insert Method that carries out the necessary, but the Insert sets the focus of the first field, and this errors when I try and carry this out in the Init Method, example below:
>
>-----
>Procedure Init
>
>LPARAMETERS tcArg
>
>IF tcArg = 'Insert'
>thisForm.Insert()
>ENDIF
>
>-----
>It then errors and says that I can't set the focus from an Init method.
>
>Any ideas would be greatfully appreciated on another way I could get around this problem.
>
>Thanks
>Kev
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform