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
Vilnius BASIC
(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!
===Strings=== Suffixing a variable with {{code|$}} indicated it was a string. String functions include the common {{code|ASC, CHR$, LEN, STR$, VAL}}. The {{code|STRING$}} function makes copies of a given pattern string so that {{code|A${{=}}STRING$(17, "X")}} will produce a string of 17 X's.{{sfn|Manual|p=44}} Only one manipulation function is included, {{code|MID$}}, which works as in MS, but can also be used to replace characters in an existing string, {{code|MID$(A$,1,1){{=}}"Y"}} will replace the first letter of A$ with Y. {{code|INKEY$}} returns the current key pressed on the keyboard, if any.{{sfn|Manual|p=45}} {{code|+}} was used for [[string concatenation]], as in most dialects. The {{code|HEX$, OCT$ and BIN$}} functions returned a string encoding the value passed in. For instance {{code|PRINT HEX$(255)}} produces FF, while {{code |PRINT BIN$(255)}} produces 0000000011111111.
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)