<< CLOSE DATASET | IBEBlock | EXECUTE STATEMENT >>

EXECUTE IBEBLOCK

Using the EXECUTE IBEBLOCK statement you can call other IBEBlocks from the main block.

Examples of usage

1.

 EXECUTE IBEBLOCK
 AS
 BEGIN
   ...
   MyFunc = 'EXECUTE IBEBLOCK (
               IntVal INTEGER)
             RETURNS (
               Square INTEGER)
             AS
             BEGIN
               Square = IntVal * IntVal;
             END';
   EXECUTE IBEBLOCK MyFunc (2) RETURNING_VALUES :Square;
   ...
 END

2.

 EXECUTE IBEBLOCK
 AS
 BEGIN
  ...
   MyFunc = ibec_LoadFromFile('C:\MyBlocks\Square.ibeblock');
   EXECUTE IBEBLOCK MyFunc (2) RETURNING_VALUES :Square;
   ...
 END 

back to top of page
<< CLOSE DATASET | IBEBlock | EXECUTE STATEMENT >>