>Hello Cetin:
>
>How are you. Thank you for your kind response.
>
>>You setup values in main.prg with default empty values, 1st form should setup them then the 2nd form should run. But 1st form is not modal and 2nd form doesn't wait the values be set ? IOW in second form before your SQL if you log values are they what you expected them to be ?
>>
>The first form is the main form for the application startup. It consists of a container with 2 text control and a command button. The click envent of the command button will process the code and retrieve the Reference Number (which in my opinion should be containted in the mUserReferenceNumber variable till teh user shuts down the application). Later, the user could click on a menu item to view their messages. The init method of the message form uses the value of mUserReferenceNumber to identify the uer's fullname and thereafter to check if that user has any messages.
>
>Like I said, in the development mode, all is OK, but mUserReferenceNumber or the Fullname does not work after the app has been compiled.
Henry,
Would you provide your main.prg code (reduced - where variables are defined, where Form1 and 2 are called -modal or not- and where the read event/sclear events are)
Cetin