Do you have questions ? We got the answers!

Ask a question:

0
how do I check if something is not equal to other side in TestComplete? Syntax error while lexing character "!"

Open 1 Answers 19 Views

I am trying to compare something as below in TestComplete

  If UBound(gropBoxList) >= 0 Then
    Log.Message("Total number of items found: " & (UBound(gropBoxList) + 1))
    if UBound(gropBoxList) != 4 Then
  Else
    Log.Warning("No items found.")
  End If

But, I am getting error Syntax error while lexing character "!"

Kindly advise

1 Answer

0

You  can use code as given below:

If UBound(gropBoxList) >= 0 Then
    Log.Message("Total number of items found: " & (UBound(gropBoxList) + 1))
    if UBound(gropBoxList) <> 4 Then
  Else
    Log.Warning("No items found.")
  End If

answered Oct 6 by anonymous

Top Contributors

  • 4970 pointsstbadmin

    34 questions 454 answers218 comments

  • 430 pointsSunilBhaskar

    40 questions 14 answers26 comments

  • 425 pointsMehedi

    36 questions 3 answers14 comments

  • 354 pointsSoft Tester

    43 questions 0 answers4 comments

  • 342 pointssumitkumarwatts

    0 questions 12 answers0 comments

  • 327 pointsKeeshaGolden

    0 questions 17 answers2 comments

  • 322 pointsVipul Sharma

    44 questions 0 answers24 comments

  • 310 pointsvysh.sharma

    25 questions 0 answers0 comments

  • 267 pointsOnkar_Nimje

    33 questions 15 answers15 comments

  • 258 pointsVanitha

    26 questions 0 answers6 comments

...