01-28-2009, 10:58 AM
By descriptive way we can set property values like this... check with the Object Spy and set by copy in object spy properties and paste in your script... if you manually types, chance is there to set property wrongly. so copy and paste avoids this types of small mistakes.
for e.g:
for e.g:
Code:
dialog("title:=Login").Activate
If dialog("title:=Login").winEdit("attached text:=Agent Name:","visible:=True").Exist(1) then
msgbox "it exists",3,"Status of Object"
else
msgbox "it doesn't exists in dialog box",3,"Status of Object"
end if