Oh Christ... Image Name?
Malte Brill
revolution at derbrill.de
Tue Dec 13 03:12:23 EST 2005
Hi Tom and all,
the repeat for each method Tom suggested won´t work, as repeat for each
doesn´t give a numerical index variable, but actually holds the value
of the char.
The for each loop could look like this, using a counter variable:
put 0 into tCounter
repeat for each char theChar in fld "myField"
add 1 to tCounter
if the imageSource of char tCounter of fld "myField" is empty then
next repeat
put the imageSource of char tCounter of fld "myField" & cr after
tListOfImageIDs
end repeat
delete char -1 of tListOfImageIDs
Also one thing to be aware of: If you work with HTML text of the field,
the original character in the field is likely to get lost and you end
up with a space instead.
Try this with a field:
put "abc" into fld "myField"
set the imagesource of char 1 of fld "myField" to the ID of img
"myImage"
set the HTMLText of fld "myField" to the HTMLText of fld "myField"
put char 1 of fld "myField" = " "
-> true
:-)
Just 0.1 cent,
Malte
--
ArcadeEngine - prepare to WOW your audience within minutes
http://www.runrev.com/section/revselect/arcadeengine
http://www.derbrill.com/arcadeengine/forum
More information about the use-livecode
mailing list