Tags:
create new tag
view all tags

.WIDGET COUNT ROWS

This subroutine counts the number of selected rows in a table widget.


Usage:

      PASS         <count>                    FIELD            SHARE? Y
      PASS         <widget name>              FIELD            SHARE? N
      GOSUB    --- .WIDGET COUNT ROWS
      *        Check for errors
      IF       --- .WIDGET COUNT ROWS         NE

Description:

This subroutine counts the number of selected rows in a table widget. All parameters are required, the subroutine will cancel if any are missing.

<count> is the count of selected rows returned to you (Required). This must be PASSed with Share "Y" to return the value.

<widget name> is the name of the table widget (Required).

This is a quick way to determine how many rows the user has selected when they single or double click in a table widget.

Comments:

Read what other users have said about this page or add your own comments.


This is a nice way to ensure that multiple rows aren't selected when you only want to process one record. A nicer future enhancement would be a field in the Widget file to allow or disallow multiple selections (WIDGET MULT ROWS OK?).

-- AlKalter - 2013-06-05

-- JeanNeron - 2013-05-29

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2013-06-05 - AlKalter
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback