Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Works as an *.app not as an *.exe
Message
From
15/11/2002 12:02:51
 
 
To
15/11/2002 11:43:23
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00722936
Message ID:
00723286
Views:
11
This message has been marked as the solution to the initial question of the thread.
>Basically the class definition file is compiled when when you make a instance of it.

I don't think thats true. Thats what I was trying to say in my original message.

Running this program does not work as an EXE but does work as an APP:
* Create a PRG
TEXT TO lcPrg NOSHOW 
DEFINE CLASS myNewClass AS Session 
	PROCEDURE Test
		WAIT WINDOW 'Test!'
	ENDPROC 
ENDDEFINE
ENDTEXT 

STRTOFILE(lcPrg, 'custom\testdcx.prg')
oO = NEWOBJECT('myNewClass', 'custom\testdcx.prg')
oO.Test()
The following, works regardless of where it's running from:
* Create a PRG
TEXT TO lcPrg NOSHOW 
DEFINE CLASS myNewClass AS Session 
	PROCEDURE Test
		WAIT WINDOW 'Test!'
	ENDPROC 
ENDDEFINE
ENDTEXT 

STRTOFILE(lcPrg, 'custom\testdcx.prg')
COMPILE custom\testdcx.prg
oO = NEWOBJECT('myNewClass', 'custom\testdcx.prg')
oO.Test()
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform