Page 1 of 1

Problem with STRING(ascii code, number)

Posted: Sun Sep 18, 2011 9:06 am
by claudevdw
In the sample code ASCI.BAS in examples/console,
I get an error message for

PRINT STRING$(196, 5)

"error 9 line 5 expect an operator but found `5` "

Which operator ?

STRING(196, 5) doesn`t work better than STRING$(196, 5)

Thanks for help.

Claude VDW

Problem with STRING(ascii code, number)

Posted: Mon Sep 19, 2011 3:46 pm
by Marco
Think you found a print command bug
please program it like this

dim s as string

s=string$(196,5)
print s

or:

const s=string$(196,5)
print s

i hope this will help you out, in the mean tim i shall fix the bug
best regards marco

Problem with STRING(ascii code, number)

Posted: Tue Sep 20, 2011 9:34 am
by claudevdw
It works

Thanx

Claude