how to add a time-out during trials

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

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

Re: how to add a time-out during trials

Post by Simon » Wed Feb 27, 2013 6:25 am

Tell me the image "object" name.

Now lets look at where the images are stored (what folder in relation to the stack):

Code: Select all

put the effective filename of this stack into tPath
That will give you the path to where your stack is, then add your images into a folder next to the livecode file, say call it images

Code: Select all

global gPath
put the effective filename of this stack into gPath --lets make it a global
put gPath & "/images/" into gPath
Now here is where I need the image object name:

Code: Select all

set the filename of image "imageobjectName" to gPath & item 1 of line trial of fld "doglist"-- hmm in preopencard you say line a
That is how you can show your image L13.jpg or any of the others.

If you open the inspector for the image object what is it's name? Not the name of what is inside it.

The first image will always work because it's how you saved the file.

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

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

Re: how to add a time-out during trials

Post by Simon » Thu Feb 28, 2013 1:50 am

Here to clarify:
myPic.png
image
Need that name not the C:/blah/blah

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

Post Reply