DOC: CodeLocation Property Incorrectly Shows Optional Argument (190979)



The information in this article applies to:

  • Microsoft Visual Basic Enterprise Edition for Windows 5.0
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0

This article was previously published under Q190979

SUMMARY

The Online Help topic for the CodeLocation property of the Microsoft Visual Basic Member object describes an optional parameter of Propkind, which is an enumerated value of vbext_PropertyKind.

MORE INFORMATION

The CodeLocation property is a read-only property. Assigning a value to the property will generate the following error:
Can't assign to read-only property
To work around this problem, use the ProcStartLine method of the CodeModule Object.

Modification Type:MinorLast Reviewed:1/9/2003
Keywords:KB190979