How to convert given text to small letters

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

How to convert given text to small letters

Post by rblack » Tue Nov 12, 2013 1:07 pm

Hi All!

Is there any option to set the
Position> function to be not-case sensitive?

If not, then how can I convert text given text to small letters, ie:

Text:
Aoeio7RtwWzX¦Æ should convert to aoeio7rtwwzx¶æ

I suppose some Regex/Easy pattern should be implemented, but how to do that?

User avatar
PepsiHog
Automation Wizard
Posts: 517
Joined: Wed Apr 08, 2009 4:19 pm
Location: Florida

Post by PepsiHog » Tue Nov 12, 2013 1:15 pm

@ rblack,


Try this

Code: Select all

let>String=Aoeio7RtwWzX¦Æ
LowerCase>String,Result
mdl>%Result%
PepsiHog
Windows 7

PepsiHog. Yep! I drink LOTS of Pepsi (still..in 2024) AND enjoy programming. (That's my little piece of heaven!)

The immensity of the scope of possibilities within Macro Scheduler pushes the user beyond just macros!

rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

Post by rblack » Wed Nov 13, 2013 9:15 am

well, I do not have the LowerCase> function :/ I have Macro Scheduler 11.1.17

User avatar
Rain
Automation Wizard
Posts: 550
Joined: Tue Aug 09, 2005 5:02 pm
Contact:

Post by Rain » Wed Nov 13, 2013 1:07 pm

You can use the lowercase VBScript function.

Code: Select all

VBSTART
VBEND

Let>varText=THIS IS MY STRING
VBEval>LCase("%varText%"),varText
MessageModal>varText
Or uppercase

Code: Select all

VBSTART
VBEND

Let>varText=this is my string
VBEval>UCase("%varText%"),varText
MessageModal>varText
Last edited by Rain on Tue Nov 19, 2013 4:35 pm, edited 1 time in total.

rblack
Pro Scripter
Posts: 87
Joined: Sat Dec 22, 2007 12:39 pm

Post by rblack » Wed Nov 13, 2013 2:16 pm

it works :)

Impressive time! Thank you!

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts