PowerBuilder Function Get Select Row Of DataWindow gf_get_all_selected_row
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
// Function Name : gf_get_all_selected_row // Argument Name : adw_control, Arg Type : Datawindow, Pass By : Value // al_row[], Arg Type : Long, Pass By : Reference // Return Type : Integer // Purpose: Returns the selected rows of a DataWindow into an array // // Scope: public // // Description : adw_control the DataWindow control that has rows selected // al_row[] an array of type long passed by reference that will contain // the row numbers of the selected rows in the DataWindow // // Returns: long the number of selected rows in the DataWindow Long ll_row Long ll_selected_count Long ll_index = 1 ll_row = adw_control.GetSelectedRow (0) If ll_row = 0 Then // If no rows are selected, return zero Return 0 Else // Loop through the DataWindow rows and add each row number that is selected to the array. Do al_row[ll_index] = ll_row ll_index++ ll_row = adw_control.GetSelectedRow (ll_row) Loop While ll_row > 0 Return ll_index - 1 End If |
Good Luck!
Subscribe
Login
0 Comments