Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

image file need to copy or not

Status
Not open for further replies.

dickylam

IS-IT--Management
Jun 24, 2001
86
I have a question,

If I have a image, which I make it through a class.

Now, I create a simple form (modal), and add such class into the form, since the image contain image file.

Then, I compile and build execute on it, and I obtain an testform.exe (for example)

and now, I simple copy this testform to another computer which have vfp runtime on it.

Anyone know that do I need to copy the image file ? Also, since the property of picture in the image under the class has been defined at certain path and the testform.exe is running in another folder location of another pc, I feel it will not show the image properly (but I have not tested)

Tks for help
 
Compile the image file into your exe and VFP should be able to find it. If you need to find the path to the directory where your exe is executing from in order to set the picture property to that directory and image you could use something like:

= ADDBS(JUSTPATH(SYS(16))) + 'MyImage.bmp'

Slighthaze = NULL

[ul][li]FAQ184-2483
An excellent guide to getting a fast and accurate response to your questions in this forum.[/li][/ul]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top