I guess being clear helps others understand what one is talking about. I hope I am
being clear this time!
My intention is to "bank" images for use with an HTML text file (a la MC2.4) so that
the pictures can be called with <img
src .... and displayed within the text field.
The difficulty seems to be immediately after the create command is first executed.
What happens is that MC goes from
"run" (the hand) to "edit" (the pointer). However, the handler merrily carries on and
completes creating all the images!
This can be proven by not making the images "invisible".
on makePictures
put 0 into increment
#REM open file with image names and make images for each file
put url "file:volume2001_1images.txt" into tData #REM open list of image file
names
###Thanks to Klaus Major for the above line of code - EXTRAordinary, unbelievable!
"WOOF"
repeat for each line tLine in tData
if tLine is not empty then
add 1 to increment # increment counter add
next element to array - array is so I can delete
images after viewing text
put char 1 to 6 of tLine into picture[increment] # Put 6 letters of image
file name into array
create invisible image picture[increment] # Make a new image card
and NAME it 6 letters of file name
### wait 3 seconds #Test - is this where is switches?
put picture[increment] into field id 1021 #Test - view file names
set the fileName of image picture[increment] to picture[increment] & ".gif" #
Put file name into image
else
exit repeat
end if
end repeat
###And... thanks to Ken Ray for the above repeat routine, far more elegant than mine!
end makePictures
The "volume2001_1images.txt" file holds file names such as: agnew2.gif , caface.gif,
etc., each on its own line.
Lawrence Adams (still recovering from Basic)
Archives: http://www.mail-archive.com/[email protected]/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to <[EMAIL PROTECTED]>, not this list.