function execute lparameters tcProgName do (tcProgName)But what will be the use of such a function. I would simply directly "do blah.spx". "=" is not the execute but assign operator. When you don't need the return value of a function you simply write :
=myfunc() * Which is equivalant do myfunc * So what's the difference =myfunc() and do myfunc * when it has parameters there is an obvious difference x=5 =myfunc(x) && Parameter passed by val ? x && 5 * vs do x=5 do myfunc with x && Parameter passed by ref ? x && 10 * This one would also match do version x=5 =myfunc(@x) && Parameter passed by ref ? x && 10 function myfunc parameters tnNumber tnNumber = tnNumber * 2 returnWith VFP in most situations you don't even need to use "=" operator.