Discussions about the BBC BASIC language, with particular reference to BB4W and BBCSDL
- Posts: 49
- Joined: Mon 16 Apr 2018, 06:17
The 'star' commands can be implemented using the OSCLI command, e.g.
Code: Select all
OSCLI also has the ability to use variables in the call, so can be adapted during runtime, e.g.
However, my question is, are there any other advantages of one over the other, such as speed or error handling?
- Posts: 58
- Joined: Wed 04 Apr 2018, 06:36
Play around, perhaps substituting other variable for the font name or the font size. As it stands, using the star command is just slightly slower than using OSCLI but using a variable is very slightly faster than using the full string.
- Posts: 1
- Joined: Tue 03 Apr 2018, 16:45
I don't have a font called Ariel. Did you mean Arial?
Interestingly, for a non-existent font they all take the same (very short) time.
With Arial, OSCLI cases are marginally faster (Results: 96,94,94).