Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET PROCEDURE and SET CLASSLIB
Message
From
13/02/2008 16:25:21
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01292307
Message ID:
01292402
Views:
64
>>>>If my.vcx is included in EXE, SET CLASSLIB will use it regardless of path specified.
>>>>
>>>>>My question is, if I have SET CLASSLIB TO q:\abc\my.vcx, this location or file is not going to be on
>>>>>the runtime PC.
>>>>>
>>>>>I have a small project with both VCX's and PRG based classes. The classes are in a subfolder called 'Classes'
>>>>>and the PRG's are in a folder called 'Programs'.
>>>>>
>>>>>The app object automatically does a SET CLASSLIB or SET PROCEDURE for each file in the folder.
>>>>>
>>>>>When I run the EXE, which is not in the same location as devolpment, the class is not found.
>>>
>>>
>>>That's what I thought. The problem is that my code does an ADIR() for each file, then loops thru the array
>>>and SET's CLASSLIB to each VCX. Since the file are not there on the client, the SET CLASSLIB never happens.
>>>
>>>So, since the path is ignored in runtime, I can hardcode in the development path?
>>
>>MaxFrame has already handled this. As a class is created via the project manager, it will be added to a PROCEDURE PMIncludeFiles in the your ??main.prg. This ensures that even if you destroy and recreate your project file, the classes will be brought in and therefore compiled into the exe.
>
>This is a different app, not based on VMP.

OK. You can use the same technique in non-vmp apps. After all it's still VFP :)
Previous
Reply
Map
View

Click here to load this message in the networking platform