I'd like to create a text string to parse through for displaying menus...
I know, there are functions to use an external screen, but working on a comm shell, that I'd like to have everything internal.. already have some of the functions down, for like menu headers and prompts... but the parsing for the menu options is getting to me..
also, is there a way to get an internal @ code to translate... I created a s that will center a block of text in a given size, the only problem is that w I seem to use an @ code, it doesn't translate before the strlen goes.. :(
anyways, back to the need at hand, an example on parsing a string would be really helpfull... :) there doesn't seem to be a means of getting a substri or the position of a substring in a file.
example of what I want to parse...
M,Message Menu;F,FileMenu;
would parse out to...
[M] Message Menu
[F] File Menu
Also, any examples on reading in from a file would be great... :)
Also, any examples on reading in from a file would be great... :)
Did you look at FILE_IO.SRC?
@-codes are expanded during printing only. Consider using one of the global variables (listed in SBBSDEFS.INC) or a command-line specifier (listed in Appendix A of SYSOP.DOC) instead.
@-codes are expanded during printing only. Consider using one of the glob variables (listed in SBBSDEFS.INC) or a command-line specifier (listed in Appendix A of SYSOP.DOC) instead.
Actually, i'm working on something similar -- I'd like to do a compare again @GRP and @SN but i havent seen any global vars or command line specifiers that report back this info -- is there anyway to get it in for a compare?
basically I'm looking to have my main menu prompt either display the short o the long description of the current msg board based on the group its in.
should be relatively easy to accomplish this, one i figure out how to get th info into my code ;)
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,043 |
Nodes: | 15 (0 / 15) |
Uptime: | 47:31:11 |
Calls: | 500,902 |
Calls today: | 5 |
Files: | 109,370 |
D/L today: |
6,751 files (922M bytes) |
Messages: | 304,286 |