Brown Eyed Girl (browneyedgirl65) wrote in component_help,
Brown Eyed Girl
browneyedgirl65
component_help

  • Mood:

global vars?

Ooh! My very first error in compiling layers!!

Compile error: line 25, column 1: Can't set non-existent property 'cleargif'


 21: set header_link = "#6b7f8d";
 22: set main_bgcolor = "#d6c8cc";
 23: set page_background_image = "";
 24:
 25: set cleargif = "<img src=\"$*PALIMGROOT/component/clear.gif\" width=\"1\" height=\"1\" alt=\"\" border=\"0\" />";
 26: 
 27: function TagsPage::view_title() : string {
 28:   return "Categories";
 29: } 


barfs on #25 since it's not a property, which I understand. What I'm trying for, though, is a global string variable to make the numerous (I say, NUMEROUS) usages of this clear gif a little less cluttered. I could just define it as a var string within each function I suppose, but a single definition would be hunky dory.

It don't like var string defn's at this level, either.


Wow, it's fun programming in a language in midstream when I don't know what else there is, what language it is, what the syntax is....whee!

Cheers,
--BEG the obnoxious
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 6 comments