Home
Forums
New posts
Search forums
Articles
Latest reviews
Search resources
Members
Current visitors
Newsgroups
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Class Module Method
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Andy Pope, post: 11945993"] Hi, You would make the Clear routine part of the class module. Public Sub Clear() dmMass = 0 dmDensity = 0 dmVolume = 0 dmCOG_x = 0 dmCOG_y = 0 dmCOG_z = 0 End Sub And then in code you would use it something like this. Option Explicit Dim muInertiaData As CInertiaData Sub Test() Set muInertiaData = New CInertiaData With muInertiaData .dmMass = 10.3 .dmDensity = 2 .dmVolume = 12 Debug.Print "Before Clear", .dmMass, .dmDensity, .dmVolume .Clear Debug.Print "After clear", .dmMass, .dmDensity, .dmVolume End With End Sub Cheers Andy [/QUOTE]
Verification
Post reply
Home
Forums
Newsgroups
Microsoft Excel
Microsoft Excel Programming
Class Module Method
Top