Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a form with Insert
Message
From
10/02/2000 06:39:33
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Calling a form with Insert
Miscellaneous
Thread ID:
00329908
Message ID:
00329908
Views:
57
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
Next
Reply
Map
View

Click here to load this message in the networking platform