Oxygen Basic

Programming => Problems & Solutions => Topic started by: Frankolinox on August 23, 2014, 09:38:31 AM

Title: char pattern problem with convertion
Post by: Frankolinox on August 23, 2014, 09:38:31 AM
lalala :)
Title: Re: char pattern problem with convertion
Post by: Charles Pegge on August 23, 2014, 10:23:56 AM
Hi Frank,

you can use the char construct directly:

try this:

s=chr (65,66,67,68,69,70) &
  chr (97,98,99,100,101,102)
print s
Title: Re: char pattern problem with convertion
Post by: JRS on August 23, 2014, 10:31:49 AM
I'm curious Charles. Does O2 support 0X22 or other numeric base numbering inline with standard (base 10) numbers? (Like SB)
Title: Re: char pattern problem with convertion
Post by: Charles Pegge on August 23, 2014, 10:49:07 AM
Hi John,

O2 currently supports the following binary,octal & hexadecimal formats:


print 0b100 '4
print 0o100 '64
print 0h100 '256
print 0x100 '256

print &b100 '4
print &o100 '64
print &h100 '256

print 100o  '64
print 100h  '256