Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
BASIC-PLUS
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Standard statements=== The {{code|PRINT}} command divided the screen into regions 14 spaces wide, and the comma was used to move between these locations; {{code|PRINT 1,2,3}} would output 1, 2 and 3 in a spaced-out fashion,{{sfn|PLUS|1972|p=3-7}} while {{code|PRINT 1;2;3}} would leave a single space and produce "1 2 3".{{sfn|PLUS|1972|p=3-8}}{{efn|The space in front of the numbers was left for a possible minus sign, this was the standard in almost all BASICs}} {{code|INPUT}} allowed a prompt string to be specified, but used the semicolon to separate it rather than the comma; {{nowrap|{{code|INPUT "WHAT IS THE VALUE";A|basic}}.{{sfn|PLUS|1972|p=3-10}}}} Strings could be delimited by single or double quotes.{{sfn|PLUS|1972|p=5-2}} In addition to the {{code|CHR}} and {{code|ASCII}} functions that converted single characters to and from string format,{{sfn|PLUS|1972|p=5-12}} BASIC-PLUS also supported Dartmouth's {{code|CHANGE}} command. {{code|CHANGE}} iterated the string and returned each character's ASCII value as a slot in a numeric array. For instance, {{code|CHANGE 'HELLO' TO X}} would return an array with the five ASCII codes, 110, 105, 114, 114, 105, in elements 1 through 5, and the number 5, the length of the string, in element 0.{{sfn|PLUS|1972|p=5-5}} One could reverse the operation as well, {{code|CHANGE X TO A$}} would read the individual numbers in the X array and convert it to a string.{{sfn|PLUS|1972|p=5-7}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)