Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Leading '.' or '!' can only appear inside a 'With' statement
Collapse the table of content
Expand the table of content

Leading '.' or '!' can only appear inside a 'With' statement

A period (.) or exclamation point (!) that is not inside a With block occurs without an expression on the left. Member access (.) and dictionary member access (!) require an expression specifying the element that contains the member. This must appear immediately to the left of the accessor or as the target of a With block containing the member access.

Error ID: BC30157

To correct this error

  1. Ensure that the With block is correctly formatted.

  2. If there is no With block, add an expression to the left of the accessor that evaluates to a defined element containing the member.

Show:
© 2015 Microsoft