Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FileToStr with a picture
Message
From
06/01/2009 03:02:44
 
 
To
05/01/2009 21:20:43
Jay Johengen
Altamahaw-Ossipee, North Carolina, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01371275
Message ID:
01371316
Views:
13
This message has been marked as the solution to the initial question of the thread.
>We have code like this:
>
>m.lcPictureFile = GETPICT()
>REPLACE ptPicture WITH FILETOSTR( m.lcPictureFile )
>
>The problem is that I want to have a default picture. It is FaceProfile.jpg and it is an included file in the project. The FileToStr seems to work above because m.lcPictureFile has the fully qualified path. But, I do not have that with FaceProfile image as it is just part of the project. How can I get this to work?

Wouldn't it be more efficient (at least storage-wise) to leave ptPicture empty to indicate a default image and just display the FaceProfile.jpg when that is the case?
Regards,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform