>>>I have an foxpro exe that runs from a shortcut normally. If it is run with a certain parameter from the command line (via "Scheduled Tasks") it should start up, do some processing in the form.init then exit. I have found that you cannot call thisform.release in the init but quit works. If quit is in the form.init will it fire the form.unload method?
>>Not sure, becuase never test it, but after you do processing in init event of the form you alway scan RETURN .f. to release the form.
>
>RETURN .f. leaves my app runnning. I have to go to the Foxpro Program menu and select "Cancel". In my form.unload I have CLEAR EVENTS so I'm not sure what is happening.
Unload event is fired when RETURN .f. from Init.
DEFINE CLASS form1 AS form
DoCreate = .T.
Caption = "Form1"
Name = "Form1"
PROCEDURE Init
RETURN .f.
ENDPROC
PROCEDURE Unload
WAIT WINDOW "Unload Fired"
ENDPROC
ENDDEFINE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.