Author Topic: I find uncompatibility in metacommands? [SOLVED]  (Read 2608 times)

0 Members and 1 Guest are viewing this topic.

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
I find uncompatibility in metacommands? [SOLVED]
« on: December 10, 2021, 03:32:46 pm »
Hi. Try use $NoPrefix and $Color:32 in one source code. It works not. Is this OK or not?
« Last Edit: December 10, 2021, 04:35:21 pm by Petr »

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: I find uncompatibility in metacommands?
« Reply #1 on: December 10, 2021, 04:26:06 pm »
Hi. Try use $NoPrefix and $Color:32 in one source code. It works not. Is this OK or not?

Doesn't work.

$COLOR:32 defines us a color called Red.
$NoPrefix strips the underscore off _RED.

Now, what exactly does Red do?

It tosses errors, of course.  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: I find uncompatibility in metacommands? [SOLVED]
« Reply #2 on: December 10, 2021, 04:38:30 pm »
Yes I understand. I was hoping for some magic that one meta-command would take the other in its basic form, that the meta-commands didn't apply to the others meta-comands... come on no, well. Thank you :)

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: I find uncompatibility in metacommands? [SOLVED]
« Reply #3 on: December 10, 2021, 05:00:35 pm »
Yes I understand. I was hoping for some magic that one meta-command would take the other in its basic form, that the meta-commands didn't apply to the others meta-comands... come on no, well. Thank you :)

Actually, I think the latest development build offers a fix for this.  If I recall correctly, if the two commands are used in conjecture, the color names are changed slightly.   Red changes to become NP_Red, or some such.  I honestly don't remember exactly what the prefix is off the top of my head, but you can look inside the source folder and check that easily enough.
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: I find uncompatibility in metacommands? [SOLVED]
« Reply #4 on: December 10, 2021, 05:04:50 pm »
'$COLOR:32
'Color constants for 32bit mode, based on HTML color names, when using $NOPREFIX
Const C_AliceBlue~& = 4293982463
Const C_Almond~& = 4293910221
Const C_AntiqueBrass~& = 4291663221
Const C_AntiqueWhite~& = 4294634455

They're C_ prefixed if you use both together in the latest development builds.  ;)
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: I find uncompatibility in metacommands? [SOLVED]
« Reply #5 on: December 11, 2021, 04:14:03 am »
Glad to hear it. Thanks for the information. I'm using version 2.0, I can't update the IDE so often :)