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

what types of bugs will we find out in banking projects for automation testing?

0 Answers   Napier Healthcare, TCS,


write a vb script create 5 folders test1 test2 test3 test4 test5

3 Answers  


hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?

0 Answers  


write a vbscript for finding the sum of the numbers from 1- 50

3 Answers  


int a=4857 i need output as 7584.without using any inbuild function?

6 Answers   Aspire,


hi all, i had a question, that how to find out hiding a coloumn in a table i had a table having the following column names NAME DESCRIPTION CREATED TIME CREATED USER if i right clicked on a NAME column it will displays a menu having the same column names in a list like NAME DESCRIPTION CREATED TIME CREATED USER with check boxes.if i unched any check box, that column name should not be appear in the main table column names could anyone please solve this problem?

0 Answers   Livetek,


Differentiate javascript and vbscript?

0 Answers  


this q asked in applabs, q is: QTP should open google.com page and enter "qtp" in one edit(search) box and click search and should open google.com again and enter "job" in edit(search) box and click on search. I tried this but getting error "Edit(search) box matches more than one object", could anyone this question plz..

1 Answers   AppLabs,


By default in vbscript the arguments passed to functions and subroutines are by reference or by value?

0 Answers  


how to get date format from system locale..format means neither long nor shor... format from system locale. i need like your date is mm/dd/yyyy formate or mm-dd-yy or with time like that. how to get.

2 Answers  


Can anyone send me a vb script function for verifying the functionality of active links on a web page

0 Answers   Zensar,


I need help to write a function in vbscript to click on a link. That link looks like a tab. There are 6 tabs. When I click on 1 tab it should show as "on". when I spy the class property is on. But for the one which is not clicked the class property is blank. I have objects created in our custom object repository. Please give me some idea.

1 Answers  


Categories