Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I am in Phoenix anyone else
Message
From
12/10/2005 05:50:52
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/10/2005 01:43:45
General information
Forum:
Visual FoxPro
Category:
Conferences & events
Miscellaneous
Thread ID:
01057805
Message ID:
01058231
Views:
11
Hi Bernard,
Where did that string came from:)
PS:Storing it directly to a string preserves the data too. I don't see how this intermediate conversion works different. Didn't work for me. I get 'Property "PictureVal" value is too long' twice as soon as I paste.
Cetin

>Hi Dorin
>
>Hey Absolutely great. It works.
>
>Don't be surprised at my enthuiasm, but I have been seeking an answer for a while now and either I get nothing or the wrong one or someone telling me to load the file from disk at runtime.
>
>So what I had assumed was right. The property is incompatiable with CHR(0) and the data is being terminated.
>
>By converting to Base64 and back again the data is preserved. Now I no longer have to ship my BMP'S with my code.
>
>Thanks a million for your clear but correct answer.
>
>Bernard
>
>>>
>>>"You can use the PictureVal property of an Image object to hold the actual image data. This means you don’t have to refer to a disk file to display the image."
>>>
>>>How do you do that?
>>>How do you hold image data in a PictureVal property so that you don't need to refer to a disk file at runtime?
>>>
>>
>>A simple approach
>>When in design mode...
>>
>>
_cliptext = STRCONV(FILETOSTR(GETFILE('bmp')),13)  &&encode to base64
>>Then paste the string into PictureVal property
>>In Init...
>>
this.PictureVal = STRCONV(this.PictureVal,14)
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform