[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
  INLINE METHOD                  Define Inline Code                  
------------------------------------------------------------------------------


 SYNTAX:

  [<preScope>] MESSAGE | METHOD <cMsg>[(param)] ;
                 INLINE < code ..[ , <MoreCode> ] > [<postScope>]



 PARAMETER:

  <Scope>      Specifies the visibility of the Message. 
               Please press  Related Topics:  and select  METHOD  for
               more detailed informations about method scopes


  <cMsg>       Is the Message name of our Inline Method

  <code>       Is the Code that will be evaluated when the message is send
                 


 DESCRIPTION:

  INLINE Methods provide a quick way to put the ( small! ) code of a Method
  into the Class definition, without the need to create a separate method
  function. 
  Inline Methods are often found in C++ , where the Class Definition is done
  in the Include File ( separated from the Method Functions ) and the inline
  Code is then actually inserted into the calling code to avoid the function
  call overhed.
  FiveWin keeps the Inline Code in a codeblock that is evaluated when the 
  Method is invoked.


 EXAMPLE:


    +--------------------------------------------------------------+
    |  /* Inline Code Example */                                   |
    |  ...                                                         |
    |  MESSAGE GetString( nID ) ;                                  |
    |  INLINE IIF( hDll == 0, 'No StringResource loaded',;         |
    |                           LoadString( hDll, nId ) )          |
    +--------------------------------------------------------------+



See Also: Method Virtual SetGet Extern Block
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson