Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

unpcaking a safe array

Status
Not open for further replies.

Jevakil

Mechanical
Mar 19, 2003
41
0
0
US
I have a VARIANT of type SafeArray containing three longs. I have a varaibale m_Data (3) of type Long. How can I pass the data from Variant to m_Data.

Dim m_Var As Variant
Dim m_Data (3) As Long

How do you put the m_Var data into m_Data in VB?.



jevakil@mapdi.com

One nuclear bomb can ruin your whole day.
 
Replies continue below

Recommended for you

Code:
Dim i As Integer
For i = LBound(m_Var) to UBound(m_Var)
    m_Data(i) = m_Var(i)
Next i

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.
 
Status
Not open for further replies.
Back
Top