Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
fr0sty
on Jan 10, 2014
|
parent
|
context
|
favorite
| on:
Source Code in TV and Films
He is correct, that the value 16 given to MID$ as a 'start' will yield an "F" because the 'start' argument to the MID$ function is one-based.
This is the string:
A$ = "0123456789ABCDEF"
And calling the function will give you: MID$ (A$,1,1) => "0" ... MID$ (A$,15,1) => "E" MID$ (A$,16,1) => "F"
MID$ (
Falling3
on Jan 10, 2014
[–]
Ah, thanks! I was scratching my head on that one...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
This is the string:
And calling the function will give you: MID$ (A$,1,1) => "0" ... MID$ (A$,15,1) => "E" MID$ (A$,16,1) => "F"MID$ (