DataGrid question simple?

Trevor DeVore lists at mangomultimedia.com
Fri May 8 08:54:17 EDT 2009


On May 7, 2009, at 2:26 PM, Shao Sean wrote:

> I included this type of code in the group script of the data grid  
> object (group "Schema" in your case)
>
> on mouseUp
>  local theLine
>  local theDataA
>
>  put the dgHilitedLines of group "Schema" into theLine
>  put the dgDataOfLine[theLine] of group "Schema" into theDataA
>
>  put theDataA["Field Name"] into field "tFieldName"
>  put theDataA["Field Type"] into field "tFieldType"
>  put theDataA["Field ID"]   into field "tFieldID"
> end mouseUp

This will work fine though you could also use the selectionChanged  
message like you would in a list field. Take a look at this lesson:

<http://revolution.screenstepslive.com/spaces/revolution_tools/manuals/datagrid/lessons/3641-How-Do-I-Get-Data-Associated-With-a-Line- 
 >

Regards,

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com




More information about the use-livecode mailing list