|
|
|
Click here to copy the following block | Type SAFEARRAYBOUND cElements As Long lLbound As Long End Type
Type SAFEARRAY cDims As Integer fFeatures As Integer cbElements As Long cLocks As Long pvData As Long rgsabound(1 To 60) As SAFEARRAYBOUND End Type
Private Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (dest As _ Any, source As Any, ByVal bytes As Long) Private Const VT_BYREF = &H4000&
Function GetArrayInfo(TheArray As Variant, ArrayInfo As SAFEARRAY) As Boolean Dim lp As Long Dim VType As Integer
If Not IsArray(TheArray) Then Exit Function
With ArrayInfo CopyMemory VType, TheArray, 2
CopyMemory lp, ByVal VarPtr(TheArray) + 8, 4
If (VType And VT_BYREF) <> 0 Then CopyMemory lp, ByVal lp, 4 End If
CopyMemory ArrayInfo.cDims, ByVal lp, 16
If ArrayInfo.cDims > 0 Then CopyMemory .rgsabound(1), ByVal lp + 16, _ ArrayInfo.cDims * Len(.rgsabound(1))
GetArrayInfo = ArrayInfo.cDims End If
End With
End Function |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
|
|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|