Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can I program a case question?

Status
Not open for further replies.

borsker

Programmer
Jul 24, 2002
147
0
0
US
I am trying to automate some data into another program, however before I do that I need to find out if one of the fields is in all upper case or mixed. Is there any way I can find out without looking at the data first.
 
Test it this way:

? field = upper(field) && all uppercase
? field = lower(field) && all lowercase
? field = proper(field) && proper casing

Or create logical variables to store the testresults for testing in your program like this:

private lIsUpper, lIsLower, lIsProper

lIsUpper = (field = upper(field))
lIsLower = (field = lower(field))
lIsProper= (field = proper(field))

You then can test whatever you want.
Substitute the correct fieldname for field.

Rob.
 
Try:

IF YourField == UPPER(YourField)
&& All Uppercase
ELSE
&& Mixed
ENDIF

Best regards

Germán Restrepo
Bogotá, Colombia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top