vlax-property-available-p


(vlax-property-available-p vlaObject property [ allowWrite ] )

This function verifies whether the specified vlaObject object supports the specified property.

Arguments

vlaObject  (VLA-Object) any COM object
property  (string | symbol)  the name of the property to verify
allowWrite  (T/NIL, optional)  if non-NIL, verifies whether the property is write-enabled

Return

T or NIL;
if allowWrite is specified, the returned T/NIL indicates whether the property exists and is write-enabled

Example

(vlax-property-available myLine 'StartPoint T)  T
(vlax-property-available myLine "Center")  NIL

Remarks

see (vlax-method-applicable-p) function



©  Bricsys NV. All rights reserved.