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
Both Static and dynamic arrays are handled by VB script. Is it true?
How to write functions and sub in vb script?
How will you reverse a string in vbscript?
Write a function for Instr(). We need to write a function that works as same as Instr(). Code or Even pseudo code is good enough for me.?
Is vbscript a case-sensitive or case-insensitive?
Explain about tristate constants in vbscript?
when we use filter funtiom invb script(QTP)
Explain How do you create a recordset object in vbscript?
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
How to Enter Values on the Command promt using VB script
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
how to check whether link is disabled in QTP??
after medical test,when will be the police verification
How to assign a date value to a variable?
What if you do not specify anything when you call a procedure?