Inserting Text

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ChristopherBodell
Posts: 52
Joined: Sun Jan 20, 2008 7:06 am

Inserting Text

Post by ChristopherBodell » Sun Mar 09, 2008 10:27 pm

Anyone,

I know that it is possible to insert text in a field either "before" everything, "after" everything, or into, which then replace all text, my question is, How would i put some text into a text field, after a certain word that already exists in it, but also before anopther word? Or even after line x but before line x?

If anyone can help i would greatly appreciate it.... Many Thanks.

malte
Posts: 1098
Joined: Thu Feb 23, 2006 8:34 pm
Contact:

Post by malte » Sun Mar 09, 2008 11:06 pm

Hi christopher. You are already there. :-)

put "test" before word 7 of f ld "myField"
put "test" after line 3 of fld "myField"
put "test" after char 13 of word 2 of line 9 of fld "myField"

All the best,

Malte

ChristopherBodell
Posts: 52
Joined: Sun Jan 20, 2008 7:06 am

Thank You

Post by ChristopherBodell » Mon Mar 10, 2008 1:49 am

malte,

Thanks A lot, Thats just what i needed, i tried that before, but i must of just had the script syntax wrong or something.

:D Thanks Again,
Christopher

Post Reply