04-11-2023, 07:10 PM
My instruction is for someone who posted code like bplus did on this thread. Then later someone else joins the forum, copypastas the code, runs it and then cries into this forum claiming there is a "major bug". Because the code supplied from the forum became a reserved word without the leading underscore. Because that user decided the underscore is "too much" typing and therefore he/she will use $NOPREFIX to do something about it.
Blame the contributor, I guess. (shrugs)
The thing is that bplus wrote an useful subprogram that somebody would wish to incorporate into his/her program. However if he/she also plans to use the commands introduced in QB64PE v3.5, which come from the Tinydialogs then the subprogram's name in the forum contribution should be changed.
Before someone else says, "Oh now I have to look it up in the Wiki to see if it's not already a variable or command or function!" then keep in mind that adding features to our brand of BASIC requires a few trade-offs, it's growth that cannot be controlled. In this example, "MessageBox" is used an awful lot in the Win32 API world. It was probably picked in dozens of tool kits that we don't know about, done by other people using QuickBASIC, QBasic and any version of QB64, and other BASICs as well. But suddenly in QB64PE it becomes something the compiler flags, for example the subprogram presented here because it expects three strings as parameters!
Blame the contributor, I guess. (shrugs)
The thing is that bplus wrote an useful subprogram that somebody would wish to incorporate into his/her program. However if he/she also plans to use the commands introduced in QB64PE v3.5, which come from the Tinydialogs then the subprogram's name in the forum contribution should be changed.
Before someone else says, "Oh now I have to look it up in the Wiki to see if it's not already a variable or command or function!" then keep in mind that adding features to our brand of BASIC requires a few trade-offs, it's growth that cannot be controlled. In this example, "MessageBox" is used an awful lot in the Win32 API world. It was probably picked in dozens of tool kits that we don't know about, done by other people using QuickBASIC, QBasic and any version of QB64, and other BASICs as well. But suddenly in QB64PE it becomes something the compiler flags, for example the subprogram presented here because it expects three strings as parameters!