--- On Thu, 1/27/11, William de Smet <williamdes...@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) _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode