Forums > Javascript

getcell basics

August 5, 2009 | 9:58 am

Hi,

I’m trying to get the value in a given cell.
Does anyone know how to achieve this?
Details are joined.

function whichval()
{
var asd = arrayfromargs (arguments);
asd = mtrx.getcell();
outlet(0, asd);
}

/*
function whichval(v)
{
var asd = mtrx.getcell(v);
outlet(0, asd);
}
*/


August 5, 2009 | 4:46 pm

woh! thread read by more than one thousand users and no idea how to use getcell from inside JS ?


August 6, 2009 | 11:01 am

> outlet (0, k[0]) ; // getcell retourne un objet dont la propriété [0] est le nombre désiré.

However, if I don’t put the [0], I get the same result:

function passmoilsel (a)
{
var k = mtrx.getcell (a, 0) ;

outlet (0, k) ; //gives the value as it should
}

Merci encore, je prends un vrai cours … nécessaire.


Viewing 3 posts - 1 through 3 (of 3 total)