put URL "binfile:" behavior different between message box and handler?
Dave Cragg
dcragg at lacscentre.co.uk
Fri Sep 17 15:38:51 EDT 2004
On 17 Sep 2004, at 20:01, Frank D. Engel, Jr. wrote:
> Okay, it seems I'm at it again.
>
> I have a handler in an image, which contains the following block of
> code:
>
> answer file "Select an image to insert:" as sheet
> put it into l
> if l is not empty and there is a file l then
> answer l
> set the lockLocation of me to true
> put URL "binfile:" & l into me #####HERE
> set the lockLocation of me to false
> end if
>
> I select a PNG or JPEG image file when prompted, the "answer l"
> command (obviously for debugging purposes) displays the correct
> filename, and an all-white image is inserted where a nice, fancy,
> colorful one should be. Using
>
> put URL "binfile:/Users/username/Desktop/afile.png" into image
> "imageName"
>
Try replacing the line marked HERE with this;
put URL ("binfile:" & l) into me
Cheers
Dave
More information about the use-livecode
mailing list