Answer file with type BMPf?

Jan Schenkel janschenkel at yahoo.com
Thu Jan 27 09:06:16 EST 2011


--- On Thu, 1/27/11, William de Smet <williamdesmet at gmail.com> wrote:
> Hi Bernd,
> 
> I use this script in an image area:
> on mouseup
>     answer file "Kies een foto:" with type "All
> Images|jpg,gif,png,bmp|JPEG,GIFf,PNGf,BMPf"
>            
>    if it = empty
>            
>    then
>                
>   put empty into img "foto1"
>                
>     exit mouseUp
>              
>    end if
>            
>    put url ("binfile:" & it) into img
> "foto1"
> 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.
> 
> Greetings,
> 
> William
> 

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

HTH,

Jan Schenkel.
=====
Quartam Reports & PDF Library for LiveCode
www.quartam.com

=====
"As we grow older, we grow both wiser and more foolish at the same time."  (La Rochefoucauld)



      




More information about the use-livecode mailing list