Datagrid How many lines

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
Baltazarg
Posts: 2
Joined: Mon Aug 10, 2015 2:52 pm

Datagrid How many lines

Post by Baltazarg » Mon Aug 10, 2015 3:52 pm

How i can do to know how many row i have in my data grid.

I need this to make a loop.

Thank's

zaxos
Posts: 222
Joined: Thu May 23, 2013 11:15 pm

Re: Datagrid How many lines

Post by zaxos » Mon Aug 10, 2015 7:26 pm

Code: Select all

on mouseUp
put the dgData of grp "datagrid" into theData
put the number of elements in theData
end mouseUp
each element should be a line, altho i havent tested this.
Knowledge is meant to be shared.

Baltazarg
Posts: 2
Joined: Mon Aug 10, 2015 2:52 pm

Re: Datagrid How many lines

Post by Baltazarg » Mon Aug 10, 2015 7:39 pm

Thanks


Like this it's work fine

Code: Select all

 put the dgData of group "DDDD" into theDAtaA
put the number of elements of theDAtaA into msg

Post Reply