If LooseFlexGrid.Row = LooseFlexGrid.Rows - 1 Then
....
end if
wat is different of .row & .rows ??
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Using
LooseFlexGrid.Rowyou can get the selected row’s index, andLooseFlexGrid.Rowsreturns the total amount of Rows in your LooseFlexGrid. More info of those can be found at: Visual Basic: MSFlexGrid/MSHFlexGrid ControlsSo basically what your code tries to do is to check if the selected row is the last row in
LooseFlexGrid(because indexing starts from zero, the last row is at indexLooseFlexGrid.Rows - 1)