Re: How do I get the word before char x?

2008-06-30 Thread Mark Wieder
Jan- > put wird -1 of char 1 to x of theText That has problems if char x is in a word. Try: if char x of theText is space then put -1 into tPos else put -2 into tPos end if put word tPos of (char 1 to x of theText) -- Mark Wieder [EMAIL PROTECTED]

Re: How do I get the word before char x?

2008-06-30 Thread Mikey
The -1 thing is both counterintuitive and so, so sexy at the same time. -- Will Rogers - "I don't make jokes. I just watch the government and report the facts." ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to sub

Re: How do I get the word before char x?

2008-06-29 Thread Bill Vlahos
Brilliant Sarah and Jan. Thank you, Bill Vlahos On Jun 29, 2008, at 9:36 PM, Jan Schenkel wrote: --- Bill Vlahos <[EMAIL PROTECTED]> wrote: How do I get the word before a specific character in a field? I can be any character in the text field I choose but I can't figure out how to do somethin

Re: How do I get the word before char x?

2008-06-29 Thread Jan Schenkel
--- Bill Vlahos <[EMAIL PROTECTED]> wrote: > How do I get the word before a specific character in > a field? I can be > any character in the text field I choose but I can't > figure out how to > do something like "get the previous word" from a > specific character in > the field. > > The onl

Re: How do I get the word before char x?

2008-06-29 Thread Sarah Reichelt
On Mon, Jun 30, 2008 at 2:09 PM, Bill Vlahos <[EMAIL PROTECTED]> wrote: > How do I get the word before a specific character in a field? I can be any > character in the text field I choose but I can't figure out how to do > something like "get the previous word" from a specific character in the > fi

How do I get the word before char x?

2008-06-29 Thread Bill Vlahos
How do I get the word before a specific character in a field? I can be any character in the text field I choose but I can't figure out how to do something like "get the previous word" from a specific character in the field. The only way I figure I could do it would be to crawl backwards via