locked
string functions RRS feed

  • Question

  • Will string functions such as substr, len, etc. be coming soon?  How about file attributes such as size?
    Bob
    Thursday, December 18, 2008 4:36 PM

Answers

  • Are You  not talking about the class TEXT ?

    See class Text:
    http://smallbasic.com/doc/default.aspx?type=text

    You can manipulate text with the methods of this class

     
    varString    = "MaCsousa"                   
    varLen          = Text.GetLength(varString)     
    varSubString = Text.GetSubText(varString,0,4)
     
    GraphicsWindow.ShowMessage(varLen,"Length") 
    GraphicsWindow.ShowMessage(varSubString,"SubString") 


    and class FILE can not verify size of files but read about it

    http://smallbasic.com/doc/default.aspx?type=file

    :-)




    • Proposed as answer by MaCsousa Thursday, December 18, 2008 6:17 PM
    • Marked as answer by Vijaye Raji Thursday, December 18, 2008 7:10 PM
    Thursday, December 18, 2008 6:13 PM