PropGetEx

ACCPAC Common Controls

AccpacProperty.PropGetEx

Retrieves the ACCPAC property corresponding to the specified ObjectID, MenuID and Keyword (as opposed to the AccpacProperty object's own ObjectID, MenuID, and Keyword). The property value can be retrieved as a String or as an array of Bytes.

Function PropGetEx(
  objectID As String,
  menuID As String,
  keyword As String,
  Buffer As Variant,
  PropType As tagPropertyType) As Long

Parameters

objectID

[in] the object (program) ID of the property

menuID

[in] the menu ID of the property

keyword

[in] the keyword of the property

Buffer

[out] returns the property value

PropType

[in] 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. Unlike the PropGet method, you must specify PropType for PropGetEx.