Thanks Kee. This is simple and clear, and is a great way to do it for the exact reason you gave.

Phil Davis


On 2/20/10 4:04 PM, Kee Nethery wrote:
This may not be the fastest but I think it is easy to grok a year later when 
you are revisiting the code

repeat with x = 0 to 9
   replace (x&  "[") with (x&  "_") in theField
end repeat

For all [ in the field I need to check to see if the character to it's
immediate left is a number.

If it is a number then the [ is to be converted into an _.

If it is not a number then the [ is to be removed (no substitution or
spaces).

I need to be able to cycle through the entire field which each line may
contain several [.

Any thoughts would be appreciated as I have tried using a combination of
find characters and foundchunk on the field without success.

thanks,

-------------------------------------------------
I check email roughly 2 to 3 times per business day.
Kagi main office: +1 (510) 550-1336

--
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net

_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to