Paul,
Try this answer.
You never need to use the FUNCTION statement.
The PROCEDURE statement will do the what a FUNCTION statement does.
optional - [memvar list seperated with commas]
you do not have to pass memory variables to a FUNCTION or a PROCEDURE,
However
If in you program you define a routine as a FUNCTION,
Then you MUST call it as a FUNCTION like this:
=FUNCTION([memvar list seperated with commas])
or
memvar=FUNCTION([memvar list seperated with commas])
or
if FUNCTION() > value
If in you program you define a routine as a PRODECURE, then you can call it as a PROCEDURE or as a FUNCTION like this
do PROCEDURE [with memvar list seperated with commas]
or
=PROCEDURE([memvar list seperated with commas])
or
Memvar=PROCEDURE([memvar list seperated with commas])
or
if PROCEDURE([memvar list seperated with commas]) > value David W. Grewe
Dave@internationalbid.com
ICQ VFP ActiveList #46145644