Sign in to follow this  
Followers 0
MerkurAlex

if stringisallcaps

4 posts in this topic

#1 ·  Posted (edited)

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]

Share this post


Link to post
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

Share this post


Link to post
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]

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

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

Share this post


Link to post
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
Sign in to follow this  
Followers 0