PBX_GetDescription

PowerBuilder Native Interface

Exported methods:

PBX_GetDescription method

Description

Syntax

PBX_GetDescription ( )

Return Values

Examples

PBXEXPORT LPCTSTR PBXCALL PBX_GetDescription()
{
   static const TCHAR desc[] = {
      "class class_a from nonvisualobject\n"
      "function long meth1(string classpath)\n"
      "function string meth2()\n"
      "end class\n"

      "class class_b from nonvisualobject\n"
      "subroutine sbrt1()\n"
      "subroutine sbrt2()\n"
      "function long func1()\n"
      "end class\n"

      "class class_c from nonvisualobject\n"
      "end class\n"
   };

  return desc;
}
PBXEXPORT LPCTSTR PBXCALL PBX_GetDescription()
{
   static const TCHAR desc[] = {
      "class visualext from userobject\n"
      "event int onclick()\n"
      "event int ondoubleclick()\n"
      "subroutine setcolor(int r, int g, int b)\n"
      "subroutine settext(string txt)\n"
      "event testmouse pbm_mousemove \n"
      "end class\n"

      "globalfunctions\n"
      "function int funca(int a, int b)\n"
      "function int funcb(int a, int b)\n"
      "end globalfunctions\n"
   };

return desc;
}

Usage

Note Multiple instances
Desc ::= 
             class_desc | globalfunc_desc | forward_desc | [Desc]*
class_desc ::= 
           class className from parentClass newline
             [methods_desc]* end class newline
globalfunc_desc := 
             globalfunctions newLine [func_desc]* end globalfunctions
forward_desc := 
             forward newLine [forwardtype_desc]* end forward
forwardtype_desc := 
             class className from parentClass newline
className ::= 
             a PowerBuilder token (cannot duplicate an existing group name)
parentClass ::= 
            any class inherited from NonVisualObject or UserObject
newline ::= 
            a newline character
methods_desc ::= 
            method_desc [methods_desc]*
method_desc ::= 
            func_desc | sub_desc | event_desc
func_desc ::= 
            function returnType funcName(args_desc) newline
returnType :: =
            pbType
pbType ::= 
            any PowerBuilder type | previous declared PBNI class
funcName ::= 
            a PowerBuilder token
args_desc ::= 
            None | arg_desc, [args_desc]*
arg_desc ::= 
            [ ref | readonly ] pbType argName [array_desc]
argName ::= 
            a PowerBuilder token
array_desc ::= 
             array declaration of PowerBuilder
sub_desc ::= 
            subroutine subName(args_desc) newline
event_desc ::= 
             event returnType eventName(args_desc) newline
               | event eventName pbevent_token newline
pbevent_token :: =
          string
event eventName pbevent_token newline 

See Also