Answer file with type BMPf?

William de Smet williamdesmet at gmail.com
Thu Jan 27 13:00:12 EST 2011


Thanks everyone for taking the time to look into my problem.
@Jan: Thanks! Bedankt! Your suggestion did it.
@ Bernd: I will use your latest suggestion as well.

Till next time :-)

greetings,

William



2011/1/27 BNig <niggemann at uni-wh.de>

>
> Hi William,
>
> 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
> following command
>
> 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.
>
> kind regards
>
> 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
> >>
> > ... [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
> >
> > 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)
> >
> --
> 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.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list