Gan,
Pass the error message as a parameter to the form from the calling form :-
DO FORM errForm WITH lcErrMessage
In errForm.Init(), retrieve the parameter and place in the TextBox :-
LPARAMETERS lcErrMess
THIS.txtErrMsg.VALUE = lcErrMess
Kenneth
>I've created a form for prompting different error messages. The form contains a Textbox for different error messages which I want to put for the user.
>
>How should I run the form and then put the Value of the Error Messages with my choice? Is it possible? For example err..
>
>errform.txtErrmsg.value = "Record not found."
Kenneth.