compare the string without using stringcomp function?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How to open browser in vb script?

577


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

1527


Which operator can be used to check if two numbers are equal or not in vbscript?

642


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

1554


Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.

1407






What is purpose of scripting.filesystemobject class in vbscript?

616


what is the features of visual basic?

1545


when we use filter funtiom invb script(QTP)

2295


Which operator is used to concatenate the 2 values in the vbscript language?

550


Explain about scrrun.dll?

524


Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com

1038


How to throw an error in vbscript?

597


why variable name should not exceed 255 characters?

1809


Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?

518


Mention what is the technology used by vb script?

517