Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Harbour Version 0.37 (c) reference Guid - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

EVAL()

Evaluate a code block
---------------------------------------------------------------------------------

 Syntax

        EVAL( <bBlock> [, <xVal> [,...]])   --> xExpression  

 Arguments

        <bBlock>     Code block expression to be evaluated      

        <xVal>       Argument to be passed to the code block expression 

        <xVal...>    Argument list to be passed to the code block 
                  expression

 Returns

        <xExpression>    The result of the evaluated code block    

 Description

      This function evaluates the code bloc expressed as <bBlock> and
      returns its evaluated value.If their are multiple expressions
      within  the code block,the last expression will be value of this
      function.

      If the code block requires parameters to be passed to it,they are
      specified in the parameter list <xVal> and following.Each parameter
      is separated by a comma within the expression list.

 Examples

      FUNC MAIN
      LOCAL    sbBlock   := {|| NIL }
      ?  Eval( 1 )
      ?  Eval( @sbBlock )

      ? Eval( {|p1| p1 },"A","B")
      ? Eval( {|p1,p2| p1+p2 },"A","B")
      ? Eval( {|p1,p2,p3| p1 },"A","B")
      Return Nil

 Tests

      See examples

Status

      Ready

 Compliance

      This function is Ca Clipper compliant

 Platforms

      All

 Files

      Library is vm



See Also: AEVAL() DBEVAL()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson