Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Finding the path to the VCX
Message
De
20/12/2000 11:31:57
 
 
À
20/12/2000 11:08:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00455373
Message ID:
00455454
Vues:
29
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)
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform