hi @all,
sorry if i’m in any error or use the wrong wording … newbie …
and sorry if it’s a silly question, may be i’m just carrying a board … same reason …
in calc you can define ‘sub’-s and ‘function’-s, of which the first do their job when ‘called’ and have to have the access to needed data coded within themself, while ‘function’-s are used in cell-formulas, start without a special call, and may get values (parameters?) passed from that formula - e.g. “=testfunction(A1; 3; B2)”,
difficulty: if a ‘sub’ doesn’t work or give error or wrong results you can trace through it in the basic-IDE? (tools-macros-edit macro) by repeatedly pressing F8 and observe reactions and values step by step, but if you try the same with a function you’ll get an error message (‘Basic runtime error: Argument is not optional’) once the function first accesses one of the parameters, thus debugging is blocked,
is there any way to get over this hurdle?