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
problem with LOWER string function
Moderators: JRL, Dorian (MJT support)
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
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
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]
[email protected]