It must be in the init or load event of your form. Here is how one of my apps that have only one main form run from the main.prg:
PRIVATE llatifixquit
llatifixquit=.F.
DO FORM Rebuildall LINKED WITH llautorun, llforcedbf
DO WHILE !llatifixquit
READ EVENTS
ENDDO
Also, if the form is included in the project, why are you specifying the extension and location of the form to run? You don't need to.
Tracy
>I am executing the following code to instantiate a form. The form just blinks on the screen. I can not view it again. I have set the modal property and also used the read events. The screen does not stop on the read events syntax. What am I missing?
>
> If Alltrim(lcPassword) == BRIDGE_PASSWORD
> DO form forms\viewer.scx
> EndIf
> Read Events
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"