FastReport JScript Class Creation
Hi there,
I am trying to create a new class in JScript. Here is the code:
--> ClassType needed (in line 4 between MyClass and (5))
--> Expression expected (right before function)
Any idea if it is possible in fastreport to add custom classes?
I am trying to create a new class in JScript. Here is the code:
1: function MyClass (var1) {
2:Â Â Â Â Â Â Â Â Â Â Â Â this.var1 = var1;
3: }Â Â Â Â
4: var testClass = new MyClass(5)
--> ClassType needed (in line 4 between MyClass and (5))
1: MyClass.prototype.getVar1 = function() {
2:Â Â Â Â Â Â Â Â return this.var1;
3: }
--> Expression expected (right before function)
Any idea if it is possible in fastreport to add custom classes?