3.2.0

Brackets

Hi,

I do not want curly brackets in this :
obj.setDataText(function(i, j){return data1[i][j]});

How is possible to rewrite this code?

Thank a lot
ThomasV
January 20,
Sorry
I found solutions.
ThomasV
January 20,
function myFunction(i, j){return data1[i][j]};
obj.setDataText(myFunction);

or

obj.setDataText(new Function("i", "j", "return data1[i][j]"));

Alex (ActiveWidgets)
January 20,

This topic is archived.

See also:


Back to support forum