Sign in to follow this  
Followers 0
Vladi243

Separate between capital and small letter

6 posts in this topic

Why AU3 can't separate between capital letter and small letter?

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Why AU3 can't separate between capital letter and small letter?

Can you be alot more specific?

Edit:

Something wrong with:

StringIsLower

StringIsUpper

?

Edited by SmOke_N

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Or are you looking for something like:

#include <array.au3>
$s_string = "IAmAString"
$a_sre = StringRegExp($s_string, "([A-Z][a-z]*)", 3)
_ArrayDisplay($a_sre)


[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

I created a simple example to show you the problem.

$i="a"

If $i="A" Then MsgBox (4096, "Test", "A")
If $i="a" Then MsgBox (4096, "Test", "A")

The script can't separate between the "a" and "A".

Do you understand what's I mean? I speak English bad, that's why I can't explain my self well.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

I created a simple example to show you the problem.

$i="a"

If $i="A" Then MsgBox (4096, "Test", "A")
If $i="a" Then MsgBox (4096, "Test", "A")
Edited by SmOke_N
Fixed OP lower upper case "a" in second example.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

#6 ·  Posted (edited)

$i="a"

If $i=="A" Then MsgBox (4096, "Test", "A")
If $i=="a" Then MsgBox (4096, "Test", "A")
Ohh... Great!

You are the best.

Thanks.

Edited by Vladi243

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