allow user to import an image file

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
herbwords
Posts: 70
Joined: Sat Dec 01, 2007 2:59 am

allow user to import an image file

Post by herbwords » Wed Feb 06, 2013 7:07 am

I'm trying to allow users to import an image into each card of a card data base. It would have a browse button and the picture would be place into rectangle1. Any suggestions are appreciated. I remember Richard Gaskin built an employee data base like this way back when there was no sql.

Patrick

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: allow user to import an image file

Post by Simon » Wed Feb 06, 2013 7:15 am

Is it?

Code: Select all

answer file "Select an image"
if it is "Cancel" then exit to top
set the filename of image "myImage" to it
You have to have an empty image on each card and you will probably want to set "Lock size and position"

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

Post Reply