Results 1 to 6 of 6

Thread: Get Contents and Counting Items in a List Box

  1. #1
    Geek_Guest
    Guest

    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


  2. #2
    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


  3. #3
    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


  4. #4
    Junior Member
    Join Date
    Jun 2006
    Answers
    20

    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 !!!!


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

    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....


  6. #6
    Junior Member
    Join Date
    Jun 2006
    Answers
    20

    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
  •  
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