Table of contents
TOC
Collapse the table of content
Expand the table of content

Invalid type-declaration character

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Type-declaration characters are valid, but don't exist for alldata types; they aren't permitted in some situations. This error has the following causes and solutions:

  • A type-declaration character is appended to a variable declared in a Private, Public, or Static statement with an As clause.

    Remove the type-declaration character.

  • A type-declaration character is appended to an inconsistent literal. For example, since the ampersand ( &; ) is the type-declaration character for a Long integer, appending it to a literal of a different type causes this error:

    10.253&; 
    
 Remove the type-declaration character or replace it with the correct one.

For additional information, select the item in question and press F1 (in Windows) or HELP (on the Macintosh).

© 2018 Microsoft