>Brenda....
>
>mval= "this is the USERIDABC code."
>mval2=substr(mval,at("USERID",mval)+6)
>
>mval3=substr(mval2,1,at(' ',mval2))
Here is error - you wll have 'ABC ', not 'ABC'
'left' function better here.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.