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

what is the difference between modular and data and keyword driven framework

1947


Which in-built function related to an array joins substrings into one string in the vbscript language?

720


What is vbscript procedures?

808


What are class properties?

873


How will you convert a string to lower case string using vbscript?

763


Explain the functionality of vbscript?

712


1. How do declare public variable in vb scripts?

1780


How to Enter Values on the Command promt using VB script

1744


Is vbscript language a case-sensitive language and what does it mean?

760


Explain about adodb.stream class?

813


where can i learn VB scripint ?

1830


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2587


Description.Create

2367


how to set one column as primary key in QTP and fetch values accordingly

2064


Write a test case using Test if the images,a particular test exists,check if the page links match,page response is within a certain range,parameterization of the test,the test should comprise of actions,the test should use a custom function,the test should use global repository

1998