Printing numbers?

Previous topic - Next topic

MushroomHead

Hi,

What's wrong with the following code :-

Code (glbasic) Select
// --------------------------------- //
// Project:
// Start: Monday, April 25, 2005
// IDE Version: 2.50405

LET a = 5
PRINT CHR$(a), 10, 10
SHOWSCREEN
MOUSEWAIT
I just get a funny block being printed instead of 5?!?

Restart

'cause CHR print's out the character with number 5 - a special symbol. You wanted to write:

Code (glbasic) Select
PRINT a, 10, 10
// or
PRINT FORMAT$(a, 0, 3), 10, 30