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
what is the difference between modular and data and keyword driven framework
Both Static and dynamic arrays are handled by VB script. Is it true?
Explain about adodb.stream class?
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
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.
What purpose does ‘on error resume next’ serves?
What is the use of option explicit in vbscript?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using
What are the naming conventions while declaring a variable in the vbscript language?
Mention how to assign a date value to a variable?
How will you get the smallest subscript of an array in vbscript?
Explain few date functions in vbscript?
Why is error handling required?
Mention what is the use of option explicit in vbscript?
Which date function is used in the vbscript language to find the difference between the 2 dates?