Author Topic: ASCII SELECT  (Read 263 times)

0 Members and 1 Guest are viewing this topic.

Offline Zlatko Vid

  • Newbie
  • *
  • Posts: 47
  • User-Rate: +0/-0
ASCII SELECT
« on: August 05, 2020, 07:32:24 PM »
This simple program present simple Ascii Select with o2:
(just a small modification to see how work...)

Code: [Select]
  -------------
  'ASCII SELECT
  '============
string qz="qwerty"

  select asc qz, 1

  case "a" to "p"
    print "a to p"
  case "q" to "z"
    print "q to z"
  case else
    print "not lower case"

  end select

'SYNTAX VARIATIONS
'===================
string ah="abcdefg"

  select asc ah, 1

  case 'a' to 'p' 'SINGLE QUOTE MARKS
    print "a to h"
  case 'q' to 'z'
    print "q to z"
  case else
    print "not lower case"

  end select