PresetDocView:IsLastChannelRowSelected()

Returns a boolean.

This function will return true if the last channel is selected in the channel list for the selected preset, otherwise will return false. Useful when iterating through the channel list.

Example.

PresetDocView:DispatchAction("Select First Channel")
channelListFinished = false
while channelListFinished == false do
    -- Insert code here to do what you want with the channel.
    -- Continue to next channel, or are we done.
    if PresetDocView:IsLastChannelRowSelected() == true then
        channelListFinished = true
    else
        PresetDocView:DispatchAction("Select Next Channel")
    end
end

This select the first channel in the channel list and step through all the displayed channels.

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.