SQAGetProperty is returning 1003 error
I want my script to check to see if a field on the GUI is readonly or editable. I wrote the following:
Dim vValue as variant
iResult = SQAGetProperty("Type=EditBox;Name=CaseProExplantLi st_itemCode","readOnly",vValue)
msgbox"iResult is: "&iResult
iResult is coming back as 1003 which means my object was not found. I make sure I setcontext to the screen prior to doing the SQAGetProperty. I did a object properties to verify that I have the correct name of the object and that the readOnly property exists. Any ideas on how to get robot to recognize this object would be greatly appreciated.
Re: SQAGetProperty is returning 1003 error
It may be a child control also. Try with \; before 'type=Editbox'. Or u can get the exact context by listing the objects of the main window using SQAGetChildren("\;Type=Window;....) followed by SqaGetPropery(.."Recognition"..) for all the controls. Pl. see help for sqaGetChildren.
Is vValue an Variant ? If so, try using SQAGetPropertyAsString(..)