Problem with STRING(ascii code, number)

In this category you can exchange your programming questions and solutions.
Post Reply
claudevdw
Posts: 3
Joined: Thu Jul 21, 2011 1:16 pm

Problem with STRING(ascii code, number)

Post: # 757Post claudevdw
Sun Sep 18, 2011 9:06 am

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

Marco
Site Admin
Posts: 246
Joined: Sat Sep 15, 2018 8:41 pm

Problem with STRING(ascii code, number)

Post: # 758Post Marco
Mon Sep 19, 2011 3:46 pm

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

claudevdw
Posts: 3
Joined: Thu Jul 21, 2011 1:16 pm

Problem with STRING(ascii code, number)

Post: # 759Post claudevdw
Tue Sep 20, 2011 9:34 am

It works

Thanx

Claude

Post Reply