Answer file with type BMPf?
niggemann at uni-wh.de
Thu Jan 27 09:59:57 EST 2011
Jan's solution works for me with bmp to set the filename of the image
If you want to detach the image from the filename and to turn it from a
referenced image to an local/stack resident image you could issue the
set the imagedata of image "foto1" to the imagedata of img "foto1"
Although this may sound funny it effectively detaches the image from the
file on disk and makes it an independent image object.
>> I use this script in an image area:
>> on mouseup
>> answer file "Kies een foto:" with type "All
>> if it = empty
>> put empty into img "foto1"
>> exit mouseUp
>> end if
>> put url ("binfile:" & it) into img
>> end mouseup
>> Like I said: tested on Windows 7 and OSX 10.6 with LC
>> 4.5.3. All images show up in img "foto1". No luck with any
>> bmp file.
> ... [show rest of quote]
> I'm afraid that putting it into the image control may fail.
> Try this instead:
> set the fileName of img "foto1" to it
> if the result is not empty then answer error the result
> Jan Schenkel.
> Quartam Reports & PDF Library for LiveCode
> "As we grow older, we grow both wiser and more foolish at the same time."
> (La Rochefoucauld)
View this message in context: http://runtime-revolution.278305.n4.nabble.com/Answer-file-with-type-BMPf-tp3236720p3242389.html
Sent from the Revolution - User mailing list archive at Nabble.com.
More information about the Use-livecode