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)
>>Then paste the string into PictureVal property
>>In Init...
>>
this.PictureVal = STRCONV(this.PictureVal,14)