getting class vaues from different forms

I have a class a that holds a lot of numbers. My main form provides the class with the numbers. How can i get these values from another form?
isnoend2001Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Jorge PaulinoIT Pro/DeveloperCommented:
Can you be more clear ?
0
isnoend2001Author Commented:
The class has about 15 different properties that hold values how can i access the in more than 1 form
0
Jorge PaulinoIT Pro/DeveloperCommented:
You have to do this:

In the class declare the properties as public
' Class
Public Property Let ... ()
Public Property Get... ()

In the module declate the new class
' Module
Public myCls As New myClass

Then in the program you can use it
myCls.myProperty = "Test ..."
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

isnoend2001Author Commented:
jpaulino:
That doesnt work
Heres what i got:

Main form
Declarations
Public newJob As cNumber

Main form load
Set newJob = New cNumber

newJob.hip = 50
newJob.Valley = 65


Need to get these value from another form
0
Jorge PaulinoIT Pro/DeveloperCommented:
Change this to module declaration
Public newJob As cNumber
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
isnoend2001Author Commented:
None of that worked i decided to write a public function in the man form and get the data from that
0
Jorge PaulinoIT Pro/DeveloperCommented:
Thanks for the points but you can do that using a class. Take a look to this example

Direct link to your file
https://filedb.experts-exchange.com/incoming/ee-stuff/6727-Test.zip 

jpaulino
0
isnoend2001Author Commented:
Thanks for the example, will use that
0
Jorge PaulinoIT Pro/DeveloperCommented:
Just glad I could help!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.