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 Pass Multiple values in functions by using vb script? Function value(arg1,arg2) N1=arg1+arg2 N2=arg1-agr2 N3=arg1*agr2 N4=arg1/arg2 Value= How to pass ? End Function

3 Answers   iGate,


How do display output message without using msgbox function?

5 Answers  


I have string like hp company.print tis like company hp.write a program in vbscripting

1 Answers   HP,


How to return only alpha bate string from an string str = "bibhu@#$%&das&*)(SUndar"

4 Answers   Cap Gemini,


When are redim statement and preserve keyword used in the vbscript language?

1 Answers  


What is the extension of the vbscript file?

1 Answers  


What is the difference between function and procedure?

1 Answers  


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

1 Answers  


write a vb-script code to delete all the mails in my gmail in the year 2011

1 Answers  


accept an email id & validate it .email id should not exceed 25 characters the mail id should contain 3 characters excluding domain name,@ and .(dot) the last 3 characters of the domain should be net,com or org

2 Answers  


how many types of recording are there?

1 Answers  


Which data type/types are supported by vbscript language and what are their specialties?

1 Answers  


Categories