>Sergey,
>
>Thanks alot, that worked perfectly. I altered it to insert "m." on the right if it sensed a memory variable, and to change the + 1 to + "" if the variable name started with "lc" (handy for string concatenation).
>
>BTW, I grew up just a few miles NW of Wayne, NJ.
>
>-- Randy
>
You're welcome.
--sb--