What do you mean I can't define new functions?
This stuff just screams to be broken down into smaller more manageable bites...
no can do???
OK, it seems that I would define a MyVar class and dump the extra procedures in there,
var string cleargif;
var string userpic;
var int randuserpic;
function print_rounded_component(string header_text, string body_text);
Question: how would I call (say) print_rounded_component from within print_quote_component?
It doesn't seem to like $.print_rounded_component nor $mv.print_rounded_component...
I mean, I figured this would be a handy dandy utility to switch all the components to fully rounded corners without having to duplicate that horrible table markup everywhere...?
S2 Compiler Output at Mon Aug 8 14:26:58 2005
Error compiling layer:
Compile error: line 43, column 1: Only core and layout layers can define new functions.
S2::NodeFunction, S2/NodeFunction.pm, 191
S2::Checker, S2/Checker.pm, 339
S2::Compiler, S2/Compiler.pm, 34
40: $.randuserpic = rand(0, ((size $.userpic) - 1));
43: function print_rounded_component(string header_text, string body_text)
47: <td valign="top" rowspan="3" colspan="3" width="5">