|
Post by Wayne Rayner on Dec 3, 2012 12:07:54 GMT -5
Hey guys,
It has been a while since I last posted and I am now, deciding to not go the way of game programming instead I am going to make software instead.
So I like Basic4GL for it's ease of use of programming so for my first piece of software I am wanting to use Basic4GL, Most likely after I make this piece of software I will be using C++ for all other software I make.
I am creating a NotePad in Basic4GL and I was just reading through the Basic4GL guides and read that the input system basic4GL will not allow me to make the notepad program as easy.
So my first question is, how would you make input in Basic4GL that can go on line after line instead of the program after the enter key has entered Basic4GL goes onto the next piece of code?
This will be where all my questions for this program will be and most likely there will be quite a lot
Regards
Wayne Rayner
|
|
|
Post by shadow008 on Dec 3, 2012 15:10:54 GMT -5
My guess is it would be something along the lines of using the Inkey$() function.
So:
MAINLOOP
InputCharacter$ = Inkey$()
...Do something with the input character (Like print it to screen/add it to a string/etc)...
wend
Inkey$() gets the currently pressed key. I THINK this only works for A-Z & 0-9 characters. For the special characters (Enter, Shift, etc), I think you use InScanKey() (Mentioned in the "programmers guide"), and convert the (ASCII?) number to the input.
If it works as I think it does, I guess you could just in theory use InScanKey() for input.
|
|
|
Post by matthew on Dec 3, 2012 19:29:52 GMT -5
Hi Wayne, there have been attempts to make simple Text Editors in Basic4GL in the past. You might want to try taking a look at this thread for some advice.
|
|