I'm glad version 1.4 added a few string manipulation functions.
However, I'm going crazy without the following (should be green):
<first (10) letters of [string]>
<last (10) letters of [string]>
<middle (10) letters of [string] starting at letter (3)>
Last edited by BoltBait (2012-07-24 15:50:11)
Offline
How about just
<letters (1) through (4) of [string]>I support though.
Last edited by Wes64 (2012-07-24 15:57:09)
Offline
In 2.0 you will be able to build your own blocks, so it will be easy to make a substring function like those you suggest using the current letter x of y block!
Offline
LS97 wrote:
In 2.0 you will be able to build your own blocks, so it will be easy to make a substring function like those you suggest using the current letter x of y block!
![]()
Except that functions in 2.0 won't be able to return values.
Offline
BoltBait wrote:
LS97 wrote:
In 2.0 you will be able to build your own blocks, so it will be easy to make a substring function like those you suggest using the current letter x of y block!
![]()
Except that functions in 2.0 won't be able to return values.
![]()
They will, and even if not, you could set a variable to each block and use that as the reporter block (but it would be very impractical).
Last edited by TorbyFork234 (2012-07-24 19:24:03)
Offline
BoltBait wrote:
LS97 wrote:
In 2.0 you will be able to build your own blocks, so it will be easy to make a substring function like those you suggest using the current letter x of y block!
![]()
Except that functions in 2.0 won't be able to return values.
![]()
The simple workaround is to have a global variable called "return" (or "output", "reported", ect) and do
set [return v] to (something) stop scriptin a block definition when you want it to return something. Then do something like
get letters (1) to (4) of (string) say (join [The first four letters of ] (join (string) (join [ are:] (return))))when you want to get the letters.
Offline