Entry
BBCBASIC: Windows: Function: Parameter: How to call a function as a parameter? 1 [EVAL]
Feb 1st, 2006 12:38
Knud van Eeden,
----------------------------------------------------------------------
--- Knud van Eeden --- 01 February 2006 - 07:51 pm -------------------
BBCBASIC: Windows: Function: Parameter: How to call a function as a
parameter? 1 [EVAL]
---
Use the EVAL function.
===
Steps: Overview:
1. -Create the following program
--- cut here: begin --------------------------------------------------
PRINT EVAL( "FNTest" )
END
:
DEF FNTest
REM do something
PRINT "Hello"
= TRUE
:
--- cut here: end ----------------------------------------------------
2. -If you run this program
the EVAL function will call
the FNTest program as a parameter
and do something (e.g. it will print "Hello")
---
---
Internet: see also:
---
BBCBASIC: Windows: Function: Parameter: Link: Can you give an overview
of links?
http://www.faqts.com/knowledge_base/view.phtml/aid/39389/fid/768
----------------------------------------------------------------------