Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Return type must be s, n or b

Scroll Prev Up Next More

This compiler error will occur if the prototype one of your user-defined functions end with a letter meant to indicate the function's return type, but which is not one of the following 3 possibilities; s, n, or b.

 

For example.

// user-defined functions
function NumberOfHolidays(sTextBuffer) : m // error 110203, return type must be s, n, or b
var
nNumHols
begin
   // code to calculate the number of holidays as nNumHols
   return nNumHols // error 110203, non-void functions must return a value   
end
 
// main body of the macro
var
sBuffer
begin
   // do some processing to tally all holidays in sBuffer
   sResult = NumberOfHolidays(sBuffer) 
end

User-defined function prototypes should end with s, n, or b (or nothing in the case of void functions).

 


Topic 110203, last updated on 15-Nov-2024