substring substr get part of a string

  • This is probably obvious to everyone but me but I cant find any hit on google to explain how to get a part of a string into a new variable.

    As a reference to what I want to do: in most languages its is called something like substr( stringname, startposition, number of chars )

  • I was looking for this for 2 hours and after posting I found a solution by chance after 5 min.
    I will leave this with my solution if someone have the same problem later.
    this page show how it is done in python:
    now I started trying to find any function in UIflow that could replicate this and...

    "bytearray in list xxx get sub-list from # to #" actually writes this code!