General Macro Scheduler discussion
Moderators: JRL, Dorian (MJT support)
-
Dman
- Junior Coder
- Posts: 26
- Joined: Mon Apr 21, 2008 2:46 am
- Location: Melbourne, Australia
Post
by Dman » Fri Jun 06, 2008 1:57 am
I'm wanting to take a value which has been captured.. like MyBigWordHere as u can see below.. and have it return just the first letter of the value, "M"
Can someone tel me how to do this?
Below is a script I found which returns the last 8 characters but I cant figure out how to switch it around to be first character
Code: Select all
Let>line=MyBigWordHere
///(assuming the line is in variable "line")
Length>line,len
Sub>len,7
Midstr>line,%len%,8,LastEight
MDL>LastEight
-
Me_again
- Automation Wizard
- Posts: 1101
- Joined: Fri Jan 07, 2005 5:55 pm
- Location: Somewhere else on the planet
Post
by Me_again » Fri Jun 06, 2008 3:26 am
The program Help will show you the syntax for commands, also the syntax automatically shows at the bottom of the editor window when you type. For MidStr> the syntax is:
MidStr>string,start,length,resultvariable
so you need
Let>line=MyBigWordHere
MidStr>line,1,1,firstchar
MDL>firstchar
-
Dman
- Junior Coder
- Posts: 26
- Joined: Mon Apr 21, 2008 2:46 am
- Location: Melbourne, Australia
Post
by Dman » Fri Jun 06, 2008 4:13 am
You're the man

<3 much love
