put URL "binfile:" behavior different between message box and handler?
Klaus Major
klaus at major-k.de
Fri Sep 17 15:53:40 EDT 2004
Hi all,
>
> 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
Yes, the latest engines seem to be more sensible to "missing quotes" ;-)
> Cheers
> Dave
Regards
Klaus Major
klaus at major-k.de
http://www.major-k.de
More information about the use-livecode
mailing list