Lt Dan's legs Posted August 23, 2010 Posted August 23, 2010 When searching for safearray I found different ones. I'm confused as to how to use. Can anyone fill me in? Quote
BlackBox Posted August 23, 2010 Posted August 23, 2010 You might try reading the Developer Documentation, via the Apropos menu search for "safearray." Snippet: vlax-make-safearray Creates a safearray (vlax-make-safearray type '(l-bound . u-bound)['(l-bound . u-bound)...)] A maximum of 16 dimensions can be defined for an array. The elements in the array are initialized as follows: Numbers 0 Strings Zero-length string. Booleans :vlax-false Object nil Variant Uninitialized (vlax-vbEmpty) Arguments type The type of safearray. Specify one of the following constants: vlax-vbInteger (2) Integer vlax-vbLong (3) Long integer vlax-vbSingle (4) Single-precision floating-point number vlax-vbDouble (5) Double-precision floating-point number vlax-vbString (8 ) String vlax-vbObject (9) Object vlax-vbBoolean (11) Boolean vlax-vbVariant (12) Variant The integer shown in parentheses indicates the value to which the constant evaluates. It is recommended that you specify the constant in your argument, not the integer value, in case the value changes in later releases of AutoCAD. '(l-bound . u-bound) Lower and upper index boundaries of a dimension. Return Values The safearray created. Hope this helps! Quote
Lee Mac Posted August 23, 2010 Posted August 23, 2010 Here is a good source of information: http://www.theswamp.org/index.php?topic=31674.0 Quote
BlackBox Posted August 23, 2010 Posted August 23, 2010 Here is a good source of information: http://www.theswamp.org/index.php?topic=31674.0 That is a LOT of good information, Lee. :wink: Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.