>>You're using this, I assume, with a code or text editting window. Is this correct?
>
>Yes. We are still using mostly procedural coding. What I wanted to do was create a program to tell me what function or procedure I'm in with out doing a bunch of pages ups after I did a find. So I get the prg's editor window handle then the position the cursors on. I was then going to find what line # I was on then convert that to a position, which I was hoping would be the begining of the line. Then minus -1 to get the next line then read that line to see if it contained 'FUNC' OR 'PROC' at the begining. and so on and so forth. Then reset the pos back to where the Find found the match. Pop up a messagebox with the function/procedure name.
In VFP7 and later you can use Document View tool to see where you are in the procedure file or switch easilt to another procedure/function.
--sb--