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
_______________________________________________
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution