In tex Liberty basic I write:
a=5
print"number is ";5
and I get number is 5
How can I do that in Pure basic
the command debug is so confusing
Printing on screen.
Re: Printing on screen.
Code: Select all
a = 5
Debug "number is " + Str(a)
OpenConsole()
PrintN("number is " + Str(a))
Input()
CloseConsole()
Windows 11, Manjaro, Raspberry Pi OS


Re: Printing on screen.


PB does an automatic number transtyping if the line starts with a string
(even if empty string "")
Code: Select all
a = 5
Debug "number is " + a
OpenConsole()
PrintN("number is " + a)
Input()
CloseConsole()

Re: Printing on screen.
Note that debug should not be used for final programs, only for debugging.
Re: Printing on screen.
Code: Select all
a = 1
Debug "1+1 is not 2, it's " + a + 1

My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Re: Printing on screen.
Best to always format your numbers and not rely on implied behavior.
Use str(),strD(),roll your own, etc.
Use str(),strD(),roll your own, etc.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum