function isNumber (s: string) : boolean;
begin
isNumber := str2int(s) > 0 or s = '0';
end;
Yes you can use the box MCI code to drop a box and then use the input to get the input. Or display an ANSI to draw the box, whatever you'd like and the use input to get the input. Or you could use any of the
box/input classes to draw form-like things using MPL. There are lots of ways to do it.
There is an example of one way (although it might be overkill for what
you just asked) in testinput.mps that comes with Mystic.
I hope you and your family are doing well.
1. Would be possible to add a function in MPL similar to the IsNumber function i n FreePascal?
2. Not sure about how possible this is, but could a text box, such as
the vertic al, horizontal, etc, be used to ask a user a question and
have them type in a re sponse? Such as:
Enter your BBS Name
[ ]
And be able to save the response as a string?
Sysop: | Jon Justvig |
---|---|
Location: | Wichita, KS |
Users: | 4 |
Nodes: | 10 (0 / 10) |
Uptime: | 39:35:34 |
Calls: | 45 |
Calls today: | 45 |
Messages: | 36,349 |
Posted today: | 1 |