PreviousNextIndex

RADIO-SET phrase

Describes a radio set representation for a field or variable. The RADIO-SET phrase is an option of the VIEW-AS phrase.

Note: Does not apply to SpeedScript programming.
Syntax

RADIO-SET 
  [ HORIZONTAL [ EXPAND ] | VERTICAL ]  
  [ size-phrase ] 
  RADIO-BUTTONS label, value [ , label , value ] ... 
  [ TOOLTIP tooltip ] 

HORIZONTAL
VERTICAL
EXPAND
size-phrase
RADIO-BUTTONS label, value [ , label, value ] . . .
TOOLTIP tooltip
Example

This procedure displays a radio set that consists of three radio buttons and prompts the user to select one of the buttons. When the user selects the button, the program displays the text “This event occurred on” and the date value of selected button.

r-radio1.p
DEFINE VARIABLE hist-date AS DATE NO-UNDO 
  FORMAT "99/99/9999" INITIAL 07/04/1776 
  VIEW-AS RADIO-SET RADIO-BUTTONS  
    "Declaration of Independence", 07/04/1776, 
    "Lee Surrenders to Grant", 04/07/1865, 
    "Man Walks on Moon", 07/11/1969. 
FORM hist-date 
  WITH FRAME main-frame NO-LABELS TITLE "Dates in US History". 
ON VALUE-CHANGED OF hist-date DO: 
  ASSIGN hist-date. 
  DISPLAY "This event occurred on " + STRING(hist-date) FORMAT "x(60)" 
    WITH FRAME main-frame. 
END. 
ENABLE hist-date WITH FRAME main-frame.APPLY "VALUE-CHANGED" TO hist-date. 
WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW. 

See also

VIEW-AS phrase


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex