Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants in Object Properties
Message
De
15/10/1998 09:05:16
 
 
À
15/10/1998 08:54:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00147064
Message ID:
00147103
Vues:
41
>>>I have a constant defined to hold the path to my database (as this can change sometimes).
>>>
>>>I also have an object which needs to know the full name and path to the database in order to use it. This value is stored in a property, e.g. "C:\Appdir\Database\Database.DBC"
>>>
>>>Can I use the constant name in the property i.e.
>>>
>>>DATA_PATH+"\Database.DBC"
>>>
>>>?
>>>
>>>I have tried this a couple of ways with no success. Am I missing something, or will I have to code around it?
>>
>>I'm not so sure about that one, but why not setting that object's property in it's Init(), instead of Form/Class designer, that way it will surely work.
>>
>>Cheers
>
>Thanks for your reply, Danijel. This is the workaround that I used, but I was hoping that there would be a 'neater' way of doing this.

There's always a possibility of public variable/property in app object holding your path, then it will work...
Danijel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform