Gerard,
Add NOSHOW clause.
Do Form MyForm Name oForm NOSHOW
oForm.FromLoc = 'MYLOC'
oForm.Customer = 'MyCust'
oForm.Area = 'MYAREA'
...
oForm.Show()
>I have a form which I call as follows:
>Do Form MyForm Name oForm
>
>I then want to set properties from the 'calling' form:
>oForm.FromLoc = 'MYLOC'
>oForm.Customer = 'MyCust'
>oForm.Area = 'MYAREA' etc
>
>However, because the Form loads, and then processes, I can access the forms properties.
>
>I can do this if the Form is NonModal but then Code in the Calling Program , after the Do Form command reuns, and I dont want this to happen.
>
>Maybe there is some other syntax to use to Instantiate the form, set the properties and then set focus to it .
>
>
>Any help appreciated.
>
>regards,
>
>Gerard
--sb--