Hi g00r00,
I hope you and your family are doing well.
I've got a couple of suggestions for additions to Mystic, particularly in the MPL end of things.
1. Would be possible to add a function in MPL similar to the IsNumber function in FreePascal?
For now, I have written a function that does something close to what I need. If I'm going to be taking user input and will need to Str2Int, I want to make sure it's an actual number. ;)
Here is what I've put together. It's untested, so there may be issues with it.
Function IsNumber(str:String):Boolean
Var
c : Byte
a : Array[1..10] of Boolean
Begin
IsNumber:=True
For c:=1 to Length(str) Do
If Ord(str[c])<48 Or Ord(str[c])>58 Then
a[c]:=False
Else a[c]:=True
For c:=1 to Length(str) Do
If a[c]=False Then IsNumber:=False
End
2. Not sure about how possible this is, but could a text box, such as the vertical, horizontal, etc, be used to ask a user a question and have them type in a response? Such as:
Enter your BBS Name
[ ]
And be able to save the response as a string?
I've been having fun putting these in different places within Castle Rock, and think this would be a great addition.
Thanks for all of your hard work and effort you put into Mystic. It is greatly appreciated!
---
Black Panther(RCS)
aka Dan Richter
Castle Rock BBS
telnet://bbs.castlerockbbs.com
http://www.castlerockbbs.com
http://github.com/DRPanther
The sparrows are flying again...
--- Mystic BBS v1.12 A47 2021/01/14 (Linux/64)
* Origin: Castle Rock BBS - bbs.castlerockbbs.com (1:317/3)