ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   hi, how to compare two string values, if the string values r from inputbox in VB (https://www.excelbanter.com/excel-programming/409985-hi-how-compare-two-string-values-if-string-values-r-inputbox-vbulletin.html)

srini g

hi, how to compare two string values, if the string values r from inputbox in VB
 
hi,
how to compare two string values, if the string values r from inputbox
in VB

eg A=inputbox(" enter name1")
B=inputbox("enter the name2")
then how to compare A 'n' B
i used

strcomp(A,B) function but its not taking content of A and B . just it
compares the A and B.

so what is the solution for this in Visual Basic

Thanks & Regards,
srinu




*** Sent via Developersdex http://www.developersdex.com ***

Dave Peterson

hi, how to compare two string values, if the string values r frominputbox in VB
 
StrComp should work ok.

You may want to post a small example of your failing code and include what you
typed in for A and B.

(and make sure you look at the options for how to treat text in that strcomp
function.)



srini g wrote:

hi,
how to compare two string values, if the string values r from inputbox
in VB

eg A=inputbox(" enter name1")
B=inputbox("enter the name2")
then how to compare A 'n' B
i used

strcomp(A,B) function but its not taking content of A and B . just it
compares the A and B.

so what is the solution for this in Visual Basic

Thanks & Regards,
srinu


*** Sent via Developersdex http://www.developersdex.com ***


--

Dave Peterson


All times are GMT +1. The time now is 04:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com