contents   index   previous   next



SafeArrayGetElementSize

 

(SafeArrayElementSize)

 

f90VB Modules

 

f90VBDefs, f90VBSafeArrays

Summary

 

Returns the size (in bytes) of the elements of an array. SafeArrayGetElementSize and SafeArrayElementSize are two aliases for the same function (i.e. they behave exactly the same), so only SafeArrayGetElementSize is described below.

Syntax

 

integer(LONG_KIND) function SafeArrayGetElementSize (SARef)

{
integer(SAFEARRAY_KIND),intent(in):: SARef |
type(FSafeArray),intent(in):: SARef |
}
 

Arguments

 

SARef [Input]

A handle to, or a Fortran Safe Array structure containing a handle to, an allocated Safe Array.

Comments

 

Note that SARef must be a reference to an allocated Safe Array. Passing an invalid handle or a null handle will produce an unpredictable result.

Examples

 

See example for SafeArrayGetDim.

Related Topics

 

For information about See
Creating a Safe Array SafeArrayCreate
Allocating a Safe Array descriptor SafeArrayAllocDescriptor

 


SafeArrayGetFeatures