Data Grid Question

RevList RevList at CreaTECHSol.com
Sat Nov 21 02:11:07 EST 2009


I have to admit that I do not use the Data Grid often enough to be
comfortable with it, and I have problems finding how to do things.

I have a simple 3 column table style datagrid and I populate the first two
columns though a SQLite database.  No problem.  I would like to run a
calculation on the second cell in each row and populate the third cell
with this calculated result.
I have a function called TimeOnLine that returns the calculated result.

I have added a third column to my datagrid an am looking at the FilInData
scipt for the column behaviour.  I do not know the syntax to retrieve the
value of the second cell so that I can call my function.
Can anyone help?

on FillInData pData
   -- This message is sent when the Data Grid needs to populate
   -- this template with the column data. pData is the value to be
displayed.
   
   -- Example:
   set the text of field 1 of me to TimeOnLine(?????)
end FillInData


Stewart

--------------------------------------------------------------------------------------------------------------------
This message and any attachments are intended only for the use of the
individual to whom they are addressed and it may contain information that
is privileged or confidential. If you have received this communication by
mistake, please notify us immediately.
--------------------------------------------------------------------------------------------------------------------




More information about the use-livecode mailing list