locked
Help needed with a command using MS Small Basic - MID statement like in VB - please? RRS feed

  • Question

  • Hello, in VB there is a command MID(string,position,length)

    what is the equivalent command using MS Small Basic please ?

    I looked all over Google and couldn't find an answer!

    Cheers :)

    Sunday, June 22, 2014 10:11 AM

Answers

  • Text.GetSubText is the closest.

    myTestString = "Hello World"
    TextWindow.WriteLine(Text.GetSubText(myTestString,3,5))

    • Proposed as answer by litdev Sunday, June 22, 2014 5:34 PM
    • Marked as answer by litdev Wednesday, June 25, 2014 6:09 PM
    Sunday, June 22, 2014 10:15 AM

All replies

  • Text.GetSubText is the closest.

    myTestString = "Hello World"
    TextWindow.WriteLine(Text.GetSubText(myTestString,3,5))

    • Proposed as answer by litdev Sunday, June 22, 2014 5:34 PM
    • Marked as answer by litdev Wednesday, June 25, 2014 6:09 PM
    Sunday, June 22, 2014 10:15 AM
  • Hello, thanks a million that works equally well!

    Cheers :)

    Sunday, June 22, 2014 10:33 AM