Object function
Username:  
Password:
  > Home
v User Guide
    > Introduction
    > Hello World
    > Flow Control
    > Function Calls
    > Authentication
    > Database access
    > Content Management
    > Remote Calling
    v Object-Oriented
       o Constructor
       o Object function
       o Polymorphism
       o Inheritance
       o Object within an object
    > Other Features
> Reference
> Portal Object
> Development Guide


Shortcuts
sys Class
debug Class
Intrinsic Conversions
>> User Guide >> Object-Oriented >> Object function <=  =>      <  1  >  
Calling a function of an Object

BEE Script:      ObjName%funcname [name=value ...];

 

BEE Tag:      <beeObjName%funcname [name=value ...]>

 

When calling a function in the above format, it will first find the function funcname from the object ObjName.  The object's function needs to be set in the constructor using "var this%function:funcnam = "actual_function_name", where the actual_function_name is a name defined with the "function" command.

If the function name of the object is not set, the actual function of the same name will be called.

There are three extra arguments that can be accessed within the function: arg%function:this, which evaluates to ObjName, arg%function:thisfunction, which evaluates to funcname, and arg%function:function, which evaluates to actual_function_name.

Note: ObjName can be a BEE Variable.  However, the current version of the parser handle BEE Variable as ObjName only if there is no space, ">" or "]" in the variable syntax.  e.g. {v}%func; is OK, but {v|replace:\ ,x}%func is not because of the space in the conversion argument.

Previous Page       Next Page

Accsoft Computer Technology Pty Ltd     ABN: 98 065 617 549
PO Box 892, Epping NSW 1710         Level 1, Epping Office Park, 242 Beecroft Rd, Epping NSW 2121, Australia
Tel: Sydney - (02)98691668     National - 1300-881668         Fax: (02)98691866
© Copyright 2003 Accsoft Computer Technology Pty Ltd