Centering text inside char bax
#12
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!
Reply


Messages In This Thread
Centering text inside char bax - by bplus - 04-08-2023, 05:05 PM
RE: Centering text inside char bax - by mnrvovrfc - 04-08-2023, 06:05 PM
RE: Centering text inside char bax - by bplus - 04-08-2023, 11:44 PM
RE: Centering text inside char bax - by bplus - 04-09-2023, 12:25 AM
RE: Centering text inside char bax - by mnrvovrfc - 04-10-2023, 12:27 PM
RE: Centering text inside char bax - by bplus - 04-10-2023, 03:01 PM
RE: Centering text inside char bax - by bplus - 04-10-2023, 03:10 PM
RE: Centering text inside char bax - by SMcNeill - 04-11-2023, 05:38 PM
RE: Centering text inside char bax - by OldMoses - 04-11-2023, 05:22 PM
RE: Centering text inside char bax - by mnrvovrfc - 04-11-2023, 07:10 PM
RE: Centering text inside char bax - by SMcNeill - 04-11-2023, 11:31 PM
RE: Centering text inside char bax - by OldMoses - 04-12-2023, 12:44 AM



Users browsing this thread: 6 Guest(s)