Microsoft KB Archive/46319

From BetaArchive Wiki

WordBasic Error Code 122: Type Mismatch

PSS ID Number: Q46319 Article last modified on 03- 9-1993

1.00 1.10 1.10a 2.00 WINDOWS

Summary: In Microsoft Word for Windows versions 1.x and 2.0, the WordBasic Error Code Number 122, “Type mismatch,” indicates the argument types are not compatible. The following macro generates this error message as a result of trying to concatenate a text constant with a numeric variable (such as,“Macro Error Number:” + Err): MsgBox “Macro Error Number:” + Err, “WordBasic”, 48 By using the Str<math display="inline">() function, this macro interprets properly as follows: MsgBox "Macro Error Number: " + Str</math>(Err), “Word”, 48 For more information on Str$, please refer to the “Microsoft Word for Windows Technical Reference.”

Additional reference words: w4wmacro 1.0 1.1 1.1a 1.00 1.10 1.10a 2.00