[DataGrid] replacing the values of a selected Line with new ones

Trevor DeVore lists at mangomultimedia.com
Tue Jul 14 10:57:44 EDT 2009


On Jul 14, 2009, at 10:43 AM, Andre.Bisseret wrote:

> My dataGrid has 6 columns (Désignation, Px achat, Coef, Quantité,  
> Val. stock, PU vente)
>
> ...
>
> ON mouseUp
>    local theDataA,
>    ------------
> put "Mercurey" into theDataA["Désignation"]
> put "22" into theDataA["Px achat"]
> put "3.2" into theDataA["coef"]
> put "100" into theDataA["quantité"]
> put "2300" into theDataA["Val. stock"]
> put "66" into theDataA["PU vente"]
> set the dgDataOfIndex[the dgHilitedIndex of group "dataGrid"] of  
> group "dataGrid" to theDataA
> END mouseUp
>
> -- (Sorry for the french words)

Ça va. Je lit français.

> That only clear out the selected line ;  I don't get the new values  
> (Mercurey, 22 etc) in the columns of that line which remains empty.

Are your columns named "Désignation", "Px achat", etc. or are those  
the column labels. My guess is that they are the column labels and the  
name is actually something else.

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
www.bluemangolearning.com    -    www.screensteps.com


More information about the use-livecode mailing list