Using the EXECUTE IBEBLOCK statement you can call other IBEBlocks from the main block.
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