Then a lot of other functions that do things.
I can get the methods to work when outside any functions, but not from within one.
What am i missing?
Code: Select all
Class ArrayManipulater {
setArray(FullArray){
...
}
setArrayElement(Element) {
...
}
getArray() {
...
return FullArray
}
getArrayElement(WhichElement) {
...
return Element
}
}
Code: Select all
RandomFunction() {
...
...ValueForElement created
...
instanceOne.setArrayElement(ValueForElement)
}
Code: Select all
....
.... (not inside function)
instanceOne.setArray(ArrayToPassIn)