• Welcome to Jose's Read Only Forum 2023.
 

ASCII SELECT

Started by Zlatko Vid, August 05, 2020, 07:32:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Zlatko Vid

This simple program present simple Ascii Select with o2:
(just a small modification to see how work...)


  -------------
  '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