============
COMMENTS
============

:Is a comment
: Is a comment

============
FUNCTIONS
============

Declaration of a function begins with a sign "\"
It must be the first sign in the line

\function_name

Example file:

\function1 all words after space are ignored
msg('hello 1')

\function2
msg('hello 2')

\function3
msg('hello 3')

End of file

A view in the code explorer:

Functions
>   function1
>   function2
>   function3


============
REPORTS
============

I would like to see only these keywords in the explorer

BEGIN
END
EXIT
FOOTER
FOR
HEADER
INCLUDE
MACRO
PRINTER
REP
SIGNATURE
TITLE

A view in the code explorer:
Report
>   BEGIN
>   END
>   EXIT
>   FOOTER
>   FOR
>   HEADER
>   INCLUDE
>   MACRO
>   PRINTER
>   REP
>   SIGNATURE
>   TITLE



============
OBJECTS
============

a declaration of an object
obj_decl(name[, field_or_meth])

a field of an object
obj_fld(acronym, init_value)

a method of an object
obj_meth(name, "formula", [param_type 1], [param_type 2])

a virtual method of an object
obj_virt(name, "formula", [param_type 1], [param_type2])

a change of a content of the virtual method
set_virt(object, name, formula, [param_type1], [param_type2])

a deletion of an object
obj_del(object)

Example file:

obj_decl('new_class',
   obj_fld('str_fld', 'text'),
   obj_fld('date_fld', date()),
   obj_fld('val_fld', 10),
   obj_meth('meth1',"some code"),
   obj_meth('meth2',
   "  some code line1;
      some code line2;
      some code lineN;
      last code line
   ", param1, param2),
   obj_virt('virt1',"some code"),
);

_obj:=obj_new(@.CLASS.new_class);
echo(_obj.str_fld);
_obj.meth1();
_obj.meth2();
set_virt(_obj,'virt1',"new code");
_obj.virt1();
obj_del(_obj)

End of file

A view in the code explorer:
Objects
>   +obj_decl new_class
>  >    obj_fld str_fld
>  >    obj_fld date_fld
>  >    obj_fld val_fld
>  >    obj_meth meth1
>  >    obj_meth meth2
>  >    obj_virt virt1
>   obj_new @.CLASS.new_class
>   set_virt _obj, virt1
>   obj_del _obj

-- 
<http://forum.pspad.com/read.php?2,45037,45158>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem