PropGet

ACCPAC Common Controls

AccpacProperty.PropGet

Retrieves the ACCPAC property value based on the values set in the AccpacProperty object's Keyword, MenuID and objectID. The property value can be retrieved as a String or as an array of Bytes.

Function PropGet(
  varBuf as Variant,
  [PropType As tagPropertyType]) As Long

Parameters

varBuf

[out] returns the property value

PropType

[in, optional] the property value's type

Return Value

Returns 0 upon success and a non-zero error code upon failure.

Remarks

If PropType is set as PROP_AS_STRING, the property is returned as a String. If PROP_AS_ARRAY is specified, the property is returned as an array of Bytes. If PropType isn't specified, the property is returned as a String.