Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Find Combo Box length?
#4
Not Solved
Managed to solve this in the end but the solution wasn't pretty.

Code:
Private Function fstrComboSpace(pstrDialog, pstrObject, pstrData)
    Dim strComboSpace
    Dim intComboSpace

    strComboSpace = pstrData
    intComboSpace = 0

    Select Case pstrDialog
        Case "Maintain Deal Requirements"
            Select Case pstrObject
                Case "Requirement" intComboSpace = 35
            End Select
    End Select

    If intComboSpace > 0 Then
        intComboSpace = intComboSpace - len(strComboSpace)
        strComboSpace = strComboSpace & space(intComboSpace)
    End If

     fstrComboSpace =  strComboSpace
End Function

So if we know a combo box list does contain trailing spaces we have to add it to the list in this function along with the field size and space fill it so it can find the value in the combo box.
Reply


Messages In This Thread
Find Combo Box length? - by AndyBSG - 11-28-2014, 09:41 PM
RE: Find Combo Box length? - by supputuri - 12-01-2014, 06:23 PM
RE: Find Combo Box length? - by vinod123 - 12-04-2014, 10:04 AM
RE: Find Combo Box length? - by AndyBSG - 12-05-2014, 10:02 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Combo Box selection issue Shkumari 11 12,815 09-26-2013, 03:56 PM
Last Post: learnQtptips
  Unable to select a combo item by value or index martinshort 2 3,575 08-26-2013, 07:55 PM
Last Post: sudhirzpatil
  how to automate combo box in a application using qtp ricks_ngl 0 3,438 07-20-2012, 10:59 AM
Last Post: ricks_ngl
  Default value in Edit Box when Check Box is checked nacchio 2 5,104 07-18-2012, 12:21 PM
Last Post: sree.85
Question insensitive combo-box selection ?? irahulsingh 1 3,596 09-14-2011, 08:12 AM
Last Post: vIns

Forum Jump:


Users browsing this thread: 1 Guest(s)