locked
Small basic and ascii character character codes. How to create a look up ? RRS feed

  • Question

  • I would like to ASCII characters  from a small basic. Is there a way to do tables in small basic?

    Steven M. Cash

    Saturday, April 28, 2012 9:12 PM

Answers

  • Hey Steve Cash!

       About 2 days ago, Joe_molo was also asking for the Return key character code here. For convenience, gonna repeat the TextWindow version below:

    '  TextWindow ASCII Code:
    
    Loop:
    
    Key = TextWindow.ReadKey()
    
    TextWindow.Write(Key)
    TextWindow.Write("  :  ")
    TextWindow.WriteLine(Text.GetCharacterCode(Key))
    
    Goto Loop

    There is an ASCII table in the thread link above as well!
    • Edited by GoToLoopEditor Saturday, April 28, 2012 10:14 PM
    • Marked as answer by litdev Wednesday, May 2, 2012 9:11 PM
    Saturday, April 28, 2012 10:11 PM
    Answerer

All replies

  • Check out Text.GetCharacter and Text.GetCharacterCode.

    Simple example, import JTW777.

    Saturday, April 28, 2012 9:25 PM
  • Hey Steve Cash!

       About 2 days ago, Joe_molo was also asking for the Return key character code here. For convenience, gonna repeat the TextWindow version below:

    '  TextWindow ASCII Code:
    
    Loop:
    
    Key = TextWindow.ReadKey()
    
    TextWindow.Write(Key)
    TextWindow.Write("  :  ")
    TextWindow.WriteLine(Text.GetCharacterCode(Key))
    
    Goto Loop

    There is an ASCII table in the thread link above as well!
    • Edited by GoToLoopEditor Saturday, April 28, 2012 10:14 PM
    • Marked as answer by litdev Wednesday, May 2, 2012 9:11 PM
    Saturday, April 28, 2012 10:11 PM
    Answerer
  • This answers my question!

    Thanks for the help!

    Steve C.


    Steven M. Cash

    Wednesday, May 2, 2012 9:10 PM
  • Thanks for the info , I have already started using it. Thanks

    Steven M. Cash

    Thursday, May 3, 2012 12:41 AM