Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Path to property value on a CommandButton
Message
De
18/01/2008 13:48:10
 
 
À
18/01/2008 13:02:46
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01283046
Message ID:
01283059
Vues:
14
>>>This code works:
>>>
>>>
>>>THIS.BigPicture = "c:\MyPath\WZ_SearchBig.bmp"
>>>
>>>
>>>This does not:
>>>
>>>
>>>THIS.BigPicture = "WZ_SearchBig.bmp"
>>>
>>>
>>>The WZ_SearchBig.bmp file is included in the project. How can I do this so there is not a hardcoded path? Thanks!
>>
>>If it's included in the project, the hardcoded path doesn't matter. It's only needed to find the file if you're testing outside of the .EXE.
>
>Ok, that was it, but you would think Foxpro would not need the hardcoded path if it's in the project. Regardless of whether it is in development or an EXE.

I don't think I would expect that. If I'm running a program, I don't expect the program to know about whether or not I'm running it from a project, command window, etc. I want it to run the same regardless. For anything called from the program I would expect to either provide either a hard-coded path or a SET PATH statement so that it can be found.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform