Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Function is missing a return instruction

Scroll Prev Up Next More

This compiler error will occur if one of your non-void user-defined functions does not contain a return instruction.

 

For example.

// user-defined functions
function ConcatenateResult() : s
begin
   // code to prepare the result
   // ...
   // error 188305, missing a return instruction   
end
 
// main body of the macro
var
begin
   // do some processing
   sResult = ConcatenateResult() 
end

Non-void user-defined functions must end with a return statement followed by a value of the declared result type.

 

Void user-defined functions finish at end and must not contain a return instruction. Including a return instruction in a void user-defined function triggers a compilation error.

 


Topic 188305, last updated on 09-Oct-2026