![]() |
#21
|
||||
|
||||
![]()
Maybe this will do it for you...
Create a Custom Class Code:
'Class2 Option Explicit Public i As Long Public j As Long Public k As Long Code:
Const clsBytes As Long = 32 * 4 '/////////////////////////////////// '/////////////////////////////////// Sub ExampleForClass() Dim objCls As Class2 Dim str As String Set objCls = New Class2 objCls.i = &HAAAAAA objCls.j = &HABABAB objCls.k = &HBCBCBC lng_ObjPtr = ObjPtr(objCls) str = PionterToSomething("objCls", lng_ObjPtr, clsBytes) Debug.Print str 'Set objCls = Nothing End Sub '/////////////////////////////////// '/////////////////////////////////// Sub classIsGone() Debug.Print ExampleForClass DoEvents printPionterToSomething "objCls", lng_ObjPtr, clsBytes End Sub No difference. Last edited by CoolBlue; 06-20-2014 at 02:57 PM. |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wierd "script code" in a downloaded .doc file | CNBarnes | Word | 2 | 10-18-2012 02:07 AM |
![]() |
krishnaoptif | Word VBA | 9 | 06-22-2012 05:08 AM |
![]() |
Jamal NUMAN | Word | 2 | 07-03-2011 03:11 AM |
Rules and Alerts: "run a script"? | discountvc | Outlook | 0 | 06-15-2010 07:36 AM |
An "error has occurred in the script on this page" | decann | Outlook | 8 | 09-03-2009 08:54 AM |