Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set('classlib') into an .exe
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00457219
Message ID:
00457283
Views:
18
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Wow im happy to see you can understand what im posted...
The solution you give to me works fine, but in my project i have to use full path referencing to files because we have repeatedly filenames in various folders, so if you know any other possibility to do this...
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

So in other words, are you saying that you have two class libraries of the same name that are in two different paths that you will need to set? Hmmm.... well, this second suggestion is not very elegant, but I suppose that you could have two "SET CLASSLIB" settings, one for when it's an EXE and one for when it is a PRG.

IF IsEXE()
SET CLASSLIB TO MyClass, YourClass, HerClass
ELSE
SET CLASSLIB TO F:\TheDir\MyClass, Q:\ThatDir\YourClass, X:\TheDur\HerClass
ENDIF


[BTW, the IsEXE() function could use any number of approaches to figuring out if the currently running file is an EXE. There are several approaches. Personally, I tend to have an optional parameter in my MAIN program anyway ("Do Main With .T." means "program/debug mode"). In that case, IsEXE would simply "RETURN NOT tlDebugMode". Not sure if you already have your own approach in place for this.]
The whole problem with the world is that fools and fanatics are always so certain of themselves, but wiser people so full of doubts. - Bertrand Russell
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform