Solved

Problem Solving, Compare 2 Strings???

Posted on 1998-10-27
4
128 Views
Last Modified: 2010-04-30
Hey, I'm trying to have a program that Will have two Text Boxes for the user to enter Strings, Then a command Button to compare the two Strings.      And have a label Giving back information sayign that Text1 is Less than text2 or vice versa???, It's another Newbie Question, and my problem solving skills are working today
0
Comment
Question by:infiniteloop
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Expert Comment

by:mark2150
ID: 1441903
You can do < and > on strings. Suggest that you drive them to uppercase before comparison.

if ucase( text1.text ) > ucase( text2.text ) then ...


0
 

Expert Comment

by:janeausten
ID: 1441904
why don't you just use  the strcomp function?
0
 
LVL 1

Author Comment

by:infiniteloop
ID: 1441905
Only using the statement IFF
not IF, THen, Else statements


0
 
LVL 12

Accepted Solution

by:
mark2150 earned 50 total points
ID: 1441906
iff(ucase( text1.text ) > ucase( text2.text ), ..., ...)

happy now?
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question