Solved

Problem Solving, Compare 2 Strings???

Posted on 1998-10-27
4
124 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
  • 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

743 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now