Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Path to property value on a CommandButton
Message
From
18/01/2008 13:48:10
 
 
To
18/01/2008 13:02:46
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01283046
Message ID:
01283059
Views:
13
>>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform