mchoudhury
Programmer
Hi guys,
My vb.net class was getting longer so i decided to create another public class and carry on coding. From my 1st class iam claaing a function of the created class.
in the first class iam inisitating new new class:
Protected TM As TelephoneInputMinutes
Protected TC As TelephoneInputCalls
and values are being added to object of these classes as i go along the activity process.
In my new class thats been created i'm trying to retrive some of the value being added to carry on the process of the activity of that page.
But whats happening if i dont inisiatate these class again, i get an error of:
Object reference not set to an instance of an object
and if inisiatete them as
Protected TM As TelephoneInputMinutes
Protected TC As TelephoneInputCalls
to the new class then evrything goes back to 0 therefore i cannot continue from where it was left.
I need to retrive thye values of TM and TC that was inputedted on the first calss back to the second class. If i put the function in tyhe first class i done have any problems.
Does anyone knows what can be done
Function = getCostPerMonth from 2nd class CostPerMonth
1st calss name = TelephoneUsage
Thanks
My vb.net class was getting longer so i decided to create another public class and carry on coding. From my 1st class iam claaing a function of the created class.
in the first class iam inisitating new new class:
Protected TM As TelephoneInputMinutes
Protected TC As TelephoneInputCalls
and values are being added to object of these classes as i go along the activity process.
In my new class thats been created i'm trying to retrive some of the value being added to carry on the process of the activity of that page.
But whats happening if i dont inisiatate these class again, i get an error of:
Object reference not set to an instance of an object
and if inisiatete them as
Protected TM As TelephoneInputMinutes
Protected TC As TelephoneInputCalls
to the new class then evrything goes back to 0 therefore i cannot continue from where it was left.
I need to retrive thye values of TM and TC that was inputedted on the first calss back to the second class. If i put the function in tyhe first class i done have any problems.
Does anyone knows what can be done
Function = getCostPerMonth from 2nd class CostPerMonth
1st calss name = TelephoneUsage
Thanks