problem with LOWER string function

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

problem with LOWER string function

Post by bnc1 » Sun Jul 31, 2005 5:20 pm

Hello

I am having a wierd problem using the LOWER string function. try using this script :

label>start
input>Player,enter name
messagemodal>Player
Let>LowercaseName={Lower(%Player%)}
messagemodal>lowercasename
goto>start

Everything works fine except when the input variable is something like E4 or E10 ..anything starting with upper case E followed by numerics. In these cases I get error messages "Unknown Identifier" and "Error parsing Experssion" . Very strange. I am running Macro Scheduler trial version 7.3.11.4e

Bnc

User avatar
pgriffin
Automation Wizard
Posts: 460
Joined: Wed Apr 06, 2005 5:56 pm
Location: US and Europe

Post by pgriffin » Sun Jul 31, 2005 11:00 pm

string manipulation is my niche....

This will work. I am not sure why you had the problem, but my guess is that MSched was trying to read the e as the Exponential functon???

label>start
input>Player,enter name
messagemodal>%Player%
rem> Now we need some stats about our string to be able to manipulate it
rem> first we need the length
len>%Player%,LenPlayer
rem> now we need the first character isolated in a string
midstr>%Player%,1,1,Char1
rem> now we need the remainder of the player string
midstr>%Player%,2,%LenPlayer%,RestOfChars
rem> use the lower function on ONLY the first character
Let>lcPlayer={Lower(%Char1%)}
rem> use the lower function on the remainder of the characters
let>lcRemainder={Lower(%RestOfChars%)}
rem> Concatenate the two strings and ....
Concat>%lcPlayer%,%lcRemainder%
rem> Voila!
messagemodal>%lcPlayer%
goto>start

it might be readable if you remove all the remark lines.

SkunkWorks

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon Aug 01, 2005 4:21 pm

This issue has been fixed in 7.4. A beta will be available soon. Watch the Beta forum for info.
MJT Net Support
[email protected]

bnc1
Pro Scripter
Posts: 127
Joined: Sun Jul 31, 2005 5:10 pm

Post by bnc1 » Mon Aug 01, 2005 8:21 pm

Thanks for the rapid response and quick fix. I appreciate good tech support (as en ex techie). I am now a paying customer. I also like the new PAUSE function.

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