Chunking, Array's and I've lost my mind...

David Coker davidocoker at gmail.com
Thu Dec 15 22:58:38 EST 2005


Hi folks,
In the best tradition of newbie's everywhere, I'm stuck without the
benefit of an "AhHa!" moment... Basically, I'm pleading for help.

I'm trying to iterate through the contents of a text field (of varied
length), acting on each character. As my script below shows, I can get
the first character with no problems and have got the "Do something
with it" part working like it should. Just can't figure out how to do
the same for each remaining character in the field.

on mouseUp
  repeat for the number of chars in field "Phrase"
    get the first char of field "Phrase"
    put it into tCurrentLetter

    --Do something with it---

  get the next char of field "Phrase" <<-- Problem starts here

  end repeat
end mouseUp

All giggling aside from the more experienced folks out there (got my
eye on ya), I could use a little a boost here, please. :)

-Dave-



More information about the use-livecode mailing list