Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Void functions do not return a value

Scroll Prev Up Next More

This compiler error will occur if one of your void user-defined functions contains a return call followed by a value.

 

For example.

// user-defined functions
function LogMessage(sSomeMessage)
begin
   // code to log the message
   return bDone // error 110201, void functions do not return any value   
end
 
// main body of the macro
var
begin
   // do some processing
   LogMessage('success')
end

Void user-defined functions should end with a simple return statement.

 


Topic 110201, last updated on 15-Nov-2024