trendy wh♥re (catastrophic_xx) wrote in component_help,
trendy wh♥re
catastrophic_xx
component_help

Ok sorry about the last post ;)

Ok anyway, I've been getting this error message but I'm not sure it was from what i was trying to do. But I was trying to add a Free text box into my layout using these codes

 

  function print_free_text(Page p) {
  if ($*free_text_text and $*free_text) {
    print_comp_header($*free_text_text);
    """$*free_text""";
    print_comp_footer();  
  } 

Ok. So heres the error code

 


 

S2 Compiler Output at Sat Jul 9 09:25:55 2005
Error compiling layer:
Compile error: line 1570, column 10: Unexpected token found.  Expecting: [TokenPunct] = (
Got: [TokenIdent] = RecentPage
  S2::Node, S2/Node.pm, 139
  S2::NodeArguments, S2/NodeArguments.pm, 25
  S2::NodeTerm, S2/NodeTerm.pm, 450
  S2::NodeIncExpr, S2/NodeIncExpr.pm, 41
  S2::NodeUnaryExpr, S2/NodeUnaryExpr.pm, 40
  S2::NodeProduct, S2/NodeProduct.pm, 28
  S2::NodeSum, S2/NodeSum.pm, 31
  S2::NodeRelExpr, S2/NodeRelExpr.pm, 29
  S2::NodeEqExpr, S2/NodeEqExpr.pm, 29
  S2::NodeLogAndExpr, S2/NodeLogAndExpr.pm, 29
  S2::NodeLogOrExpr, S2/NodeLogOrExpr.pm, 29
  S2::NodeRange, S2/NodeRange.pm, 29
  S2::NodeCondExpr, S2/NodeCondExpr.pm, 29
  S2::NodeAssignExpr, S2/NodeAssignExpr.pm, 29
  S2::NodeExpr, S2/NodeExpr.pm, 29
  S2::NodeExprStmt, S2/NodeExprStmt.pm, 28
  S2::NodeStmt, S2/NodeStmt.pm, 55
  S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 42
  S2::NodeFunction, S2/NodeFunction.pm, 104
  S2::Layer, S2/Layer.pm, 58
  S2::Compiler, S2/Compiler.pm, 27
  
Context
1566: 
1567: 
1568: 
1569: # Change the way RecentPage and FriendsPage summaries print. (FriendsPage inherits from RecentPage)
1570: function RecentPage::lay_print_summary() {
1571: 
1572:    # print the header of the component and determine the size of the entries array
1573:    print_comp_header($*page_summary_text);
1574:    var int size = size $.entries - 1;

 

Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

  • 2 comments