While trying to write my programs on the LEGO's visual platform I suddenly fall in need of more sophisticated Building Blocks. After a few days of trial and error I found a way to create such of blocks. But there is no joy without sharing no? :)
The first block to share is the GSASubString block from the String manipulation family. This block practically allows us to extract a substring from another string (text).
Inputs: 1. Input String - the source string 2. Offset - the start position of the substring 3. Length - the substring length Outputs: 1. Substring - the resulting substring
The example returns "bc".
You can download the GSASubString here.