Visual Basic Method Notes: accName

The Object Description Language (ODL) file, Oleacc.odl, contains information that differs from the C/C++ implementation. The file Oleacc.odl contains the following definition for the version that sets the property of the function:

    [hidden, propput, id(DISPID_ACC_NAME)]
    HRESULT accName(
        [in, optional] VARIANT varChild,
        [in] BSTR szName);

Although the varChild parameter is listed as optional in the ODL file and the object browser, you must include it when calling the property-setting version of accName.