Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Parent class inside exe, subclass in subfolder
Message
From
22/10/2018 05:27:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
19/10/2018 21:41:18
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2008 R2
Database:
MS SQL Server
Miscellaneous
Thread ID:
01662676
Message ID:
01662709
Views:
90
>Hi Dragan, check using:
>
>SET CLASSLIB TO ClassLibraryName [IN APPFileName | EXEFileName] [ADDITIVE] [ALIAS AliasName]

Just to report that this would probably have helped (even though I would have to have a long list of classes declared like that) if the trick I tried didn't work.

And the trick was to have that one scx back into the project. Fox seems to find classes to createobject() etc among the already opened classes, but those in a .scx must be in the path as stored in the classloc field. Now I don't really like having this form inside the exe, as it needs to be distributed with the rest of the stuff in the folder and not with the main exe, so I'll probably just save it as class and instantiate it from it, i.e. kill the scx altogether.

This was an exhausting exercise, because I had to keep checking that it works standalone, so it was build exe, quit, rename the source folder, run, rename back, fix, build...

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform