General information
Title:
Calling a form with Insert
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only