-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement INSTR and other string functions. #39
Comments
Hi!
Not currently. Currently, FastBasic is more geared to game programming, where IMHO string searching is not used much, so I have not tough on adding it. Do you have a specific use case? perhaps a simple loop could be all it is needed, it is not that slow:
Have Fun! |
I am porting a text adventure game, and uses Instr, Mid$, Left$, Right$, and few other string related functions. I plan to simulate the function with either a USR call or subroutine like you have. |
Hi!
With current FastBasic (git version), you could write something like this (this is like C inside Basic):
Note that "&VAR" is the same as "ADR(VAR)", and |
Does fast basic have anything similar to instr, instr$? could not figure out if it had this or now.
The text was updated successfully, but these errors were encountered: