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 Convert Hex color code to color name in VB Script?

0 Answers  


Can u describe what kind of testing are for OTC derivates by banks.

0 Answers   BoA,


What is the main difference between function and sub-procedure?

0 Answers  


if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.

0 Answers  


how to validate the text in a web table

2 Answers   Mphasis,






in qtp we ve datatable look like excel ,if we want to extract data from excel which saved in my documet how can i get that in datatable using vb script

2 Answers  


what is the use of QCUtil? explain with one example?

1 Answers  


I want good books or good sites for scripting.Can any one help me.

0 Answers   Wipro,


How will you get a string with the specified character the specified number of times in vbscript?

0 Answers  


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

0 Answers  


how to find greatest of n numbers!

3 Answers   Syscon,


Explain the string concatenation function in vbscript?

0 Answers  


Categories