Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Finding the path to the VCX
Message
From
21/12/2000 04:08:22
 
 
To
20/12/2000 11:31:57
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00455373
Message ID:
00455792
Views:
40
Thanks again Trey, that did the trick!

>It should only do this for brand new, unsaved classes.
>If the class has been saved, then it should return the correct information.
>If not saved, since you had to name a VCX when creating or modifying the class, you could just use FullPath("mylib.vcx") to get the full path to VCX.
>
>>Thanks for the response Trey.
>>
>>Unfortunately this SYS command returns the same value as the 'ClassLibrary' property of the object, that is the path to the VCX of the parent class, not the class currently being constructed.
>>
>>
>>
>>>>Does anyone know how to find out the path to the VCX holding the class that is currently in design mode?
>>>>
>>>>I want to use this in a builder, so that I can programmatically add other classes to the same library.
>>>>
>>>>I have tried the ClassLibrary property, but this returns the location of the VCX holding the Parent-Class of the class being designed.
>>>>
>>>>Any ideas anyone...?
>>>
ASELOBJ(laObj,1)
>>>lcCurrentClass = SYS(1271, laObj[1])
>>>The help says SYS(1271) only works on SCX files, but it works on VCX's as well.
>>>(At least in 6.0 SP3)
Regards,

Mark A Tonks
Senior E-Business Developer
Halifax plc
Previous
Reply
Map
View

Click here to load this message in the networking platform