Results 1 to 6 of 6

Thread: Get Contents and Counting Items in a List Box

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jun 2006
    Answers
    20

    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


  2. #2
    Junior Member
    Join Date
    Jun 2007
    Answers
    2

    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
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact