DgIndex and DgLine

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Diegohaguirre
Posts: 1
Joined: Thu May 12, 2016 10:52 pm

DgIndex and DgLine

Post by Diegohaguirre » Thu May 12, 2016 11:16 pm

Hi, i'm creating a video player. The playlist is a DataGrid Form. When a video is playing, for example, de video 5, and i erase the videos 1,2 and 3, the dgline of video 5 changes to 2. So, if i want to play the next video, y must play the dgline +1 of video 5.
The question is: how to get the dgIndex of a dgLine or the dgLine of a dgIndex ?


Resolved.

put the dgLineOfIndex[pLine]

put the dgIndexOfLine[pLine]

Post Reply