-
Junior Member
Re: Get Contents and Counting Items in a List Box
To retrieve a property value in string form, use SQAGetPropertyAsString.
call SQAGetPropertyArraySize to get the size of the array , which gives you the number of items
SQAGetProperty and property as text or content
This would be right choice for you
ex:
To retrieve a property value in string form, use SQAGetPropertyAsString.
If the value of the specified property is stored in an array, you must specify a particular element in the array through an array index — for example:
Result=SQAGetProperty("Name=myList","List(0)",value)
ho[pe this help. let me know if you need more details
-
Junior Member
Re: Get Contents and Counting Items in a List Box
i cant seem to get the property as text or content
heres my code in a function:
im trying to get the column headings for a list view. There after i will get the list view items as well...
For i = 1 to iColCount
Result = SQAGetProperty(RecogStr, "text", ColHeadings(i))
print Result
if result <>SQASuccess then
exit function
end if
SQAConsoleWrite ColHeadings(i)
Next
gives error 1005 = property not found
im using robot 7.0.0.0
thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules