L.S.,
For testing purposes I want to print an object to the formula output window by the following code. I need to test this since I use several objects created by the same constructor function. It seems not possible to print the variable (the object); printing it's properties is no problem though.
Has anyone a solution for this? Or is it only possible by enlarging my constructor function with the line this.name = string? See code below.
Regards,
Bart
For testing purposes I want to print an object to the formula output window by the following code. I need to test this since I use several objects created by the same constructor function. It seems not possible to print the variable (the object); printing it's properties is no problem though.
PHP Code:
function Print(a) {
debugPrintln("******************************************" + "\n");
for(i=0; i<a.length; i++) {
debugPrintln("nieuwe Array " + a + "[" + i + "] : " + a[i].Label1 + " & "+ a[i].Label2 + " & " + a[i].Label3 + " & " + a[i].Dag() + " om " + a[i].Tijd() + "\n");
}
}
PHP Code:
var a = new Array();
function Object(..., string, ...) {
...
this.name = string
...
}
function main() {
...
var temp = new Object(..., a, ...); //string = a
a.unshift(temp);
...
}
Regards,
Bart
Comment