Continues print
BlitzMax Forums/BlitzMax Beginners Area/Continues print
| ||
Is there a way to continue a Print Command at the same line. In old basic Print "aasdasdsa"; The ';' at the end meant, dont skip to new line. is there a paralel way to do it in BM? Its not that important but would be nice to have |
| ||
You can write to the standard IO stream directly if you like:StandardIOStream.WriteString("Foo") StandardIOStream.WriteString("Bar") ' Outputs FooBar on one line 'Print' calls this internally, and just follows up by also writing "~n" or whatever your OS's newline character is. (Protip for finding out things like this: Go to the documentation page for the function you want something similar to, scroll to the top and click "Source" - it will show you how the BlitzMax builtin was implemented, and you can then use the same methods to build your own modified version. If you find the source for 'Print', you can then easily copy it and create your own version that does the same but without the newline.) |
| ||
Cool Yasha Thanks. Also for the advice.. |
| ||
Lake of clear mind in front of a computer screen prevents me from reaching my real abilities. (but im addicted so its catch 22) and sometimes sound incoherent. geez.. |