Please enable JavaScript to view this site.

 

Navigation: Macros > Macro Language > Compiler Messages > Errors

Type Mismatch aSymbol; expecting aType

Scroll Prev Up Next More

This compiler error will occur if:

 

•the 2 sides of an assignment are of different type,

•or the parameters used in a function call are of the wrong type,

•or an operator is used with the wrong type of arguments.

 

For example:

nTemp = true // integer and boolean
nDay = WeekdayOf('today') // function requires an integer
sRESULT = ('Date is ' + 25) // mixing string and integer

Use a value of the required type, or convert it explicitly. Corrected examples:

bTemp = true
nDay = WeekdayOf(Today())
sRESULT = 'Date is ' + IntToStr(25)

 


Topic 109004, last updated on 16-Oct-2026