Solved

Problem Solving, Compare 2 Strings???

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Input past end of file vbs script 9 81
Specify ip address in my connection string for sas 2 52
to transfer string from C lanaguage to VBA 4 56
Problem to With line 4 37
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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 Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

929 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

10 Experts available now in Live!

Get 1:1 Help Now