![]() |
#36
|
||||
|
||||
![]() Quote:
Quote:
ObjPtr(Class1) is like VarPtr(LongPtr) or ObjPtr(Collection) These are semantic representations of definitions of data structures, not objects. But, yep, that is what the Me statement is for. It refers to the particular instance of the object of type Class1. So every instance of type Class1 has its own "Me"... a pointer to itself. But a Class cannot have a pointer to itself, coz it's not an object, only a definition of a type of object. I'n not sure what VarPtr(Me) is though... I can't figure that on out and the contents of that location are zero. That one is making my head spin ![]() Quote:
I am hoping to have something like this... Code:
Sub testObj() Const objBytes As Long = 32 Dim o As clReferrence Dim lObj As Worksheet Set gwks = Worksheets(1) Set lObj = gwks Set o = New clReferrence o.initObject objBytes, lObj Debug.Print "Address: " & o.Address & vbTab & "Contents: " & o.Contents Debug.Print "pAddress: " & o.pAddress & vbTab & "pContents: " & o.pContents End Sub |
|
![]() |
||||
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 |