-
Get Contents and Counting Items in a List Box
I am trying to get contents in a list box. Can someone tell me what to use? SQAGetProperty? or SQAGetPropertyArrayAsString?
Also the problem that is hindering me is the property parameter. I do not know the keywords for lets say counting the items in a list box (which is ItemCount) and now i trying to figure out what is the word for the Header in a list box...
any kind of help is appreciated...
Question asked by visitor zsefy
-
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
-
Junior Member
Re: Get Contents and Counting Items in a List Box
is this urgent ? I have thought of replying those thread once a week? let em know if this is urgent !!!!
-
Junior Member
Re: Get Contents and Counting Items in a List Box
yeah its kinda urgent! Sorry to take up your time but i cant seem to get the property parameter correct for list views. In addition i am also not sure about the recogn. string parameter....
-
Junior Member
Re: Get Contents and Counting Items in a List Box
sure !!!! hey, i will reply EOD
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