Hi Folks,
This may not be possible, however I am attempting to declare a “List” in the class below.
Truthfully, using a list, no problem, setting one up in a class - problem.
I searched the database but couldn’t find this example, however if you have a link to something (specific would be great) that explains how to manage the declaration and constructors I’m ready to read
I’m obviously not doing it correctly, and not sure what to change.
Thank you.
Below is my current unsuccessful attempt.
public class Performance {
var hytCnt : int; // Increases +1 each time contact is a hit
var hytList : List.<String>; // List of facts where contact was a hit
public function Performance(hytCnt:int, hytList:List.<String>){
this.hytCnt = hytCnt;
this.hytList = new List.<String>;
}
public function Performance(){
this.hytCnt = 0;
this.hytList = null;
}
}