We are building a new experience for our SmartBear Community. This site is now read-only. You can still browse and search as usual. Learn More
hautzenroeder1Occasional Contributor12 years agoSolvedVB Select Case issueI am optimizing a lot of my If...Then...Else... statements using Select Case. TestComplete supports: Select Case {value} Case 1 .... Case 2 ... etc End Select Visual Basic a...Show MoreTonyMro12 years agoThis is not a limitation of TestComplete but is instead a limitation of the VBscript language, which is not the same as Visual Basic.In the example you provided where value has a range of 1 to 12, you could do the following:If (value <= 12) Then Select Case value Case 11, 12 ...do something here... Case Else ...do something here... End SelectElse ...do something else...End If
TonyMro12 years agoThis is not a limitation of TestComplete but is instead a limitation of the VBscript language, which is not the same as Visual Basic.In the example you provided where value has a range of 1 to 12, you could do the following:If (value <= 12) Then Select Case value Case 11, 12 ...do something here... Case Else ...do something here... End SelectElse ...do something else...End If
TonyMro12 years agoThis is not a limitation of TestComplete but is instead a limitation of the VBscript language, which is not the same as Visual Basic.In the example you provided where value has a range of 1 to 12, you could do the following:If (value <= 12) Then Select Case value Case 11, 12 ...do something here... Case Else ...do something here... End SelectElse ...do something else...End If
TonyMroOccasional Contributor12 years agoThis is not a limitation of TestComplete but is instead a limitation of the VBscript language, which is not the same as Visual Basic.In the example you provided where value has a range of 1 to 12, you could do the following:If (value <= 12) Then Select Case value Case 11, 12 ...do something here... Case Else ...do something here... End SelectElse ...do something else...End If
Recent DiscussionsTestComplete(TestExecute) 15 asks for license activation almost every dayTestComplete 15.64.3.7 asks for license activation for another RDP user on the same VMFeature Request: Alternative working directory for temp files and logs in TestExecute
Related ContentClickItem select another OptionSelectingnumber of Test cases displayed for adding test cases -- can we select all test cases @1 go?