This compiler error occurs if the body of one of a void user-defined functions contains a return instruction.
For example.
// user-defined function
function AddOne(nZero)
begin
inc(nZero)
return // triggers compilation error 110204
end
// main function block
var
nStep nCounter
begin
nCounter = 0
AddOne(nCounter)
end
A void user-defined function must not contain any return instruction, even without a value.
Solution
The solution is to remove the return instruction that is serving no purpose.
See also: Spurious return in typed function and Improperly placed return in user-defined macro function.
Topic 110204, last updated on 15-Oct-2026