Author Topic: prgm syntax  (Read 4285 times)

0 Members and 1 Guest are viewing this topic.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
prgm syntax
« on: September 28, 2010, 07:51:11 pm »
I just started using Axe 0.4.4, and I wanted to try out the #include thing. So I have a program full of data in prgmDATA, and the main program contains the line
prgmDATA
. But it won't compile, giving me the "BAD PROGRAM" error. What did I do wrong?




SirCmpwn

  • Guest
Re: prgm syntax
« Reply #1 on: September 28, 2010, 07:51:52 pm »
Put a header in prgmDATA.  prgmDATA needs a header just like programs do.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: prgm syntax
« Reply #2 on: September 28, 2010, 08:07:07 pm »
Specifically, whats recommended for use is ..NAME  since it also removes it from the compile menu

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: prgm syntax
« Reply #3 on: September 28, 2010, 08:09:32 pm »
Oh, I see, thanks!




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: prgm syntax
« Reply #4 on: September 28, 2010, 11:27:08 pm »
Specifically, whats recommended for use is ..NAME  since it also removes it from the compile menu
Nice trick. I was worried if I used many includes, I would end up with a cluttered compile menu. Thanks :)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: prgm syntax
« Reply #5 on: September 28, 2010, 11:30:12 pm »
Specifically, whats recommended for use is ..NAME  since it also removes it from the compile menu
Nice trick. I was worried if I used many includes, I would end up with a cluttered compile menu. Thanks :)
Oooh, I didn't know this trick.  * ZTrumpet uses. ;D

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: prgm syntax
« Reply #6 on: September 30, 2010, 11:35:06 am »
Yeah, the two periods trick does work. Why, though? Did Quigibo support that on purpose, or was that some sort of accidental feature?




Offline ACagliano

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 919
  • Rating: +32/-2
    • View Profile
    • ClrHome Productions
Re: prgm syntax
« Reply #7 on: September 30, 2010, 12:14:05 pm »
Yeah, the two periods trick does work. Why, though? Did Quigibo support that on purpose, or was that some sort of accidental feature?

Its in the User Guide. He recently added support for what he calls "Library Files", with a 2-period header that do not appear in the compile menu.