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

When to use function procedures and what are its characteristics?

0 Answers  


filter the array values without using filter function?

0 Answers   CSS Corp, WQED,


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  


write a vb script to open a text file and write into it

2 Answers  


who will create the object?

0 Answers   TCS,






How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

0 Answers  


I want to import the sheet from the Excel to the Datatable using VB Script. I used the Syntax as 'Datatable.ImportSheet "Filename","SourceSheet","Destinat ionSheet" Ex: Datatable.ImportSheet "D:\Data1.xls","Sheet1","Global" Qtp producing run time error,How I can solve the problem

1 Answers  


Hi, I need to accept user inputs for login at runtime.I know i can use Inputbox but how to proceed further that i dont know. Thanks in advance

2 Answers  


How to Import data from a file (file is on the desktop) to the data table

2 Answers   IBM,


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

0 Answers  


What is difference between vbscript and vba?

0 Answers  


Mention what is the main difference between function and sub-procedure?

0 Answers  


Categories