Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling a different SCX than the one compiled in the EXE
Message
From
08/08/2003 11:12:35
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00816827
Message ID:
00818259
Views:
22
>>How can I have the EXE run the scx in a specific folder rather than the one compiled in the EXE...
>
>Not sure this will help, but have tried excluding the one that is being compiled in the EXE to see if that would make a difference?
>
>Mel Cummings

Hi Mel, I used a workaround, it aint't elegant but hey... it's working.

by excluding the screens from the EXE I would have to include all of the forms in the package to distribute and that, we don't want.

the workaround is as follow :

IF DIRECTORY(SYS(5)+SYS(2003)+'\Forms\',1)
IF FILE(SYS(5)+SYS(2003)+'\Forms\_'+m.cClass)
m.cCommand = 'DO FORM "' + SYS(5)+SYS(2003) + '\Forms\_' + m.cClass + '" NAME m.oInstance LINKED NOSHOW'
ELSE
m.cCommand = 'DO FORM "' + m.cClass + '" NAME m.oInstance LINKED NOSHOW'
ENDIF
ELSE
m.cCommand = 'DO FORM "' + m.cClass + '" NAME m.oInstance LINKED NOSHOW'
ENDIF

as I was saying, it's not quite what I wanted but this way I don't have to recompile and redistribute the app each time a mod is made.

Thanks anyway and have a nice day.

Yanick
Previous
Reply
Map
View

Click here to load this message in the networking platform