datagrid: index vs line
bobsneidar at iotecdigital.com
Tue Jul 28 17:15:16 EDT 2015
That is correct. If the datagrid does not have a sort applied, then upon populating it, the line and index numbers will be equal. Also, if you populate the datagrid with data in the same sort order as the datagrid, then line should equal index. It’s because of this and my need to assume that the visible line 1 is also the logical line 1 that I have gotten into the habit of getting the dgprop [“sort by column”] of the data grid, so I can query the data in the same order as the table is being sorted.
> On Jul 27, 2015, at 10:13 , Klaus major-k <klaus at major-k.de> wrote:
> Hi friends,
> just a quick question:
> When you set "the dgdata" of a datagrid of type FORM
> and you do not sort or re-arrange the datagrid or whatever then
> INDEX = LINE. Know what I mean?
> Is that correct?
> Thanks a lot in advance!
> Klaus Major
> klaus at major-k.de
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode