Text

Typeproperty
Dictionarywidget.polygrid
LibraryPolyGrid
Syntax
set the text of widget to <Data>
get the text of widget
Synonymspgtext
Associationscom.livecode.widget.polygrid
Summary

The text property reflects the content in tab delimited form.

Example
local sDirection

on headerClick pColumnNumber
    local tText

    put the text of me into tText
    put not sDirection[pColumnNumber] into sDirection[pColumnNumber]

    set the itemdel to tab

    # Sort data by this column.
    if sDirection[pColumnNumber] then
        sort lines of tText ascending by item pColumnNumber of each
    else
        sort lines of tText descending by item pColumnNumber of each
    end if

    set the text of me to tText
end headerClick
on mouseUp
    local tText

    repeat for 100
        put random(100) & tab & uuid() & cr after tText
    end repeat

    set the text of widget "PolyGrid" to tText
end mouseUp
Description

The text property always reflects the same value as pgData but in tab-delimited format. Text is supposed to be a collection of data where each row is delimited by the return character and each element is delimited by a tab.

Tagstable,data