Jump to content

if stringisallcaps


MerkurAlex
 Share

Recommended Posts

sigh forget it im like searchretarded i couldn't find it in the helpfile but i found it stringisupper

Edited by MerkurAlex

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Link to comment
Share on other sites

$str = InputBox("", "Enter a string, all upper, all lower, or mixed case")

If $str == StringUpper($str) Then
    MsgBox(0, "", 'Your string ' & @CRLF & '"' & $str & '"' & @CRLF & 'was all upper case')
Else
    MsgBox(0, "", 'Your string ' & @CRLF & '"' & $str & '"' & @CRLF & 'was NOT all upper case')
EndIf

Link to comment
Share on other sites

$str = InputBox("", "Enter a string, all upper, all lower, or mixed case")

If $str == StringUpper($str) Then
    MsgBox(0, "", 'Your string ' & @CRLF & '"' & $str & '"' & @CRLF & 'was all upper case')
Else
    MsgBox(0, "", 'Your string ' & @CRLF & '"' & $str & '"' & @CRLF & 'was NOT all upper case')
EndIf
yea i had already said i figured it out...

[quote name='PsaltyDS' post='635433' date='Jan 27 2009, 07:04 AM']Larry is a mass murderer?! It's always the quiet, clean cut, bald guys... [/quote]

Link to comment
Share on other sites

yea i had already said i figured it out...

Yeah, I had opened the post in a tab to reply, was reading a few others, then posted the reply and saw that you had already posted the figured out part. I've got to learn to reply right away :)

Oh, and don't forget the "==" for comparison to make it case sensitive.

Edited by ResNullius
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...