Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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 ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract Values from a String Paul Black Excel Programming 9 August 28th 07 02:45 PM
How do I compare string values in one column to another column? Nick N. Excel Worksheet Functions 1 April 29th 06 02:56 AM
Comparing String Values Jim Rech Excel Programming 0 September 2nd 04 05:08 PM
Comparing String Values Roderick[_4_] Excel Programming 0 September 2nd 04 03:18 PM
Comparing String Values Jim Rech Excel Programming 0 September 2nd 04 03:14 PM


All times are GMT +1. The time now is 09:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"