in QTP u can use GetVisibleText property of an object to get the tex
of
that particular object. All the best

Example :

var uid
uid=Browser(\"www.yahoo.com\").Page(\"Yahoo Mail\").Webedit(\"User
Name\").GetVisibleText

MsgBox (uid) \' uid holds the text of \"User Name\" Text
bo

-----------------------------------------------------------------------
IT Interview Questions : http://www.geekinterview.com <br> Tutorials and Articles : http://www.geekarticles.com <br> Free Training : http://www.exforsys.com