Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants in Object Properties
Message
De
15/10/1998 08:52:50
 
 
À
15/10/1998 07:25:53
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00147064
Message ID:
00147101
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?
>
>Are you having a problem with forms that have cursors in the dataenironment? In other words setting the path does not work in that case you must modify the dataenvironment property for each cursor. If this is the case for you I can send you the code to do this on the fly when you open the form.

I am setting the property in an object which will be dropped onto a form. The property must be set in the object and not the form as the object may be used in multiple forms and I dont want the burden of having to remember to open the table for the object to work on each one of those forms.
Regards,

Mark A Tonks
Senior E-Business Developer
Halifax plc
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform