PUBLIC oService as CIAEA OF MAIN.PRG m.oService=CREATEOBJECT("CIAEA", ; IIF(_vfp.StartMode>0,ADDBS(JUSTPATH(_vfp.ServerName)),FULLPATH("")), ; IIF(_vfp.StartMode>0,ADDBS(JUSTPATH(_vfp.ServerName))+"data\",FULLPATH("")+"data\") ; ) MessageBox("Hello, what's going on?") && I don't see this when I run the exe m.oService.Show() && or this READ EVENTS DEFINE CLASS CIAEA as Form PROCEDURE Init(lpcAppPath,lpcDataPath) SYS(2335,0) && Unattended server support ENDPROC &&Init PROCEDURE Destroy CLEAR EVENTS ENDPROC && Destroy ENDDEFINESo changing the code to this, then works:
if _vfp.StartMode = 2 ; then SYS(2335,0) && Unattended server support endif
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature