selection-list programmatically select all

SergioC

Member
Hi, add button with this:

Code:
    ASSIGN SELECT-1:SCREEN-VALUE IN FRAME {&FRAME-NAME} = SELECT-1:LIST-ITEMS NO-ERROR.  


    APPLY "VALUE-CHANGED":U TO SELECT-1.

and mark multiple-selection in Property-Sheet of SELECT-1.

Regards.
 

RealHeavyDude

Well-Known Member
Usually you may want to respond in some sort when the user selects a different value - and thus causing the VALUE-CHANGED event to occur. The APPLY statement is invoking that event in your code - just like if it would have caused by the user. That way your response trigger will fire.

Heavy Regards, RealHeavyDude.
 

freak

Member
Ok... I didn't see the need to trigger a value-changed event for selecting a value that is why I questioned it. Thank you!
 

Cringer

ProgressTalk.com Moderator
Staff member
If you programatically change the value of a widget and want the program to respond to that change then you always have to trigger the value-changed operation yourself, otherwise it will be ignored.
 
Top