FastReport JScript Class Creation

Hi there,

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?

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.