Oxygen Basic

Programming => Problems & Solutions => Topic started by: chrisc on March 19, 2018, 09:57:04 AM

Title: What is O2 equivalent to PB NUL$()
Post by: chrisc on March 19, 2018, 09:57:04 AM
Hello

in PB, there is a NUL$() function which return a null or blank string consisting of a specified number of characters

for example 
       DIM gast as string
       gast = NUL$(10)

        will give a string of 10 blank characters

     what is the O2 equivalent function?
     the below code is what i use for O2 now which is not efficint
     
Code: [Select]

     local gast as string
     gast = "           " 

appreciate any help




Title: Re: What is O2 equivalent to PB NUL$()
Post by: Mike Lobanovsky on March 19, 2018, 12:08:52 PM
Pls see below.
Title: Re: What is O2 equivalent to PB NUL$()
Post by: chrisc on March 19, 2018, 01:05:16 PM
thanxx a lot mike
good to know that it is in the o2 help