Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Problem Solving, Compare 2 Strings???

Posted on 1998-10-27
4
Medium Priority
?
131 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 100 total points
ID: 1441906
iff(ucase( text1.text ) > ucase( text2.text ), ..., ...)

happy now?
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

916 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