Return type does not match forward declaration: <function name>

You have declared a function or property with a Declare statement and then defined it with a Function, Property Set, or Property Get statement. The data type that you specified as the procedure's return value in the Declare statement is different from the data type you specified as the return value in the definition statement. For example:

Declare Property Set MyProperty As Integer
' ...
Property Set MyProperty As Double  ' Illegal because MyProperty's return
' ...                              ' value was already declared as Integer
End Property

Change the data type of the return value in the declaration or in the corresponding definition so that they match.