How to Call a function from another class
-
My Class A has a function named SaveSelectedItems() I'm trying to call that function from Class B. when I call it I get the message SaveSelectedItems, undeclared identifier. I'm not sure how this could be done.
Class B will need an instance of Class A, or the function in Class A will need to be declared as static.
-
My Class A has a function named SaveSelectedItems() I'm trying to call that function from Class B. when I call it I get the message SaveSelectedItems, undeclared identifier. I'm not sure how this could be done.
In your class B function where you are calling this Class A function, create an instance of class A and use that instance to call SaveSelectedItems()
-
In your class B function where you are calling this Class A function, create an instance of class A and use that instance to call SaveSelectedItems()