Replacement for Upper function or work aroung

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

Replacement for Upper function or work aroung

Post by kpassaur » Wed Aug 25, 2010 4:18 pm

I am having issues with the Upper function. It is giving me an "incorrectly formated parameters" error when I am using it on some text files. Then an error "I" not appropriate (the "I" may be some other ascii character as this comes from OCR text).

This is the code:

//Let>sampletext=erwre123

ReadFile>C:\temp\upper.txt,sampletext

Let>sampletext={Upper(%sampletext%)}

MDL>sampletext

If I remark out the text file and use the "erwre123" it works fine. Does anyone know of a way around this? A reasonable way, I really don't want to use an expression or a string replace for each lower case letter.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Wed Aug 25, 2010 4:42 pm

Assuming you are using v12 have you tried just:

UpperCase>sampletext,sampletext

?
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

will try now

Post by kpassaur » Wed Aug 25, 2010 4:44 pm

No I havent tried it (didn't remember that one), I will try it shortly.

Thanks

kpassaur
Automation Wizard
Posts: 696
Joined: Wed Jul 07, 2004 1:55 pm

UpperCase

Post by kpassaur » Wed Aug 25, 2010 4:51 pm

Thanks, it appears to be working correctly now. Nothing like new and better working functions.

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