compare the string without using stringcomp function?



compare the string without using stringcomp function?..

Answer / cnu_thatavarthi

2. how to compare values without using String compare function?
Ans:
Option Explicit
Dim strValue

strValue = "Thatavarthi"

If strValue = "Thatavarthi" Then
MsgBox "Both strings are same"
Else
MsgBox "Both strings are not same"
End If

'Expected out Put
---------------------------

---------------------------
Both strings are same
---------------------------
OK
---------------------------

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More VB Script Interview Questions

How to make professional test report using vbscript code in UFT, which gives us complete analysis of the test.

0 Answers   College School Exams Tests,


How to load vbs functions in qtp

2 Answers  


How to capture a runtime error in vbscript?

0 Answers  


How will you release the memory acquired by an array variable in vbscript?

0 Answers  


Hi I am having one folder with set of text files now i want to read and write that text files data into QTP. Any help plsss.

1 Answers  






how to declare a variable in vbscript using vbscript

4 Answers  


what does create object actually do when you call it in vbscript?

1 Answers   Cap Gemini,


write a vb script to display factorial of a number using function

1 Answers  


what is test scenario?

1 Answers  


what is diff b/n these 2 programs 1) for i=5 to 1 step 2 msgbox "pass" next 2_) for i=5 to 1 step -2 msgbox "pass" next

5 Answers   Hexaware,


Explain few date functions in vbscript?

0 Answers  


write a vbscrpit to swap values

2 Answers   Adani,


Categories