-- JochenGeorges - 17 Dec 2004

# How to make radiobuttons

Radiobuttons can be marked or not.
They are organized in groups.
Only one button per group can be marked.
Thats is the difference between radiobuttons and checkboxes.

## The Program

If RadioButton2 is marked a click on Button1 sets the text of RadioButton1 to "oops"

## The Code:

    STATIC PUBLIC SUB Main()
      DIM hForm AS Fmain
      hForm = NEW Fmain
      hForm.show
    END

    PUBLIC SUB Button1_Click()
      IF RadioButton2.value = TRUE THEN
        RadioButton1.text = "oops"
      END IF
    END

Attachment: | Action: | Size: | Date: | Who: | Comment:
--- | --- | --- | --- | --- | ---
radiobuttons.png | action | 3492 | 17 Dec 2004 - 18:54 | JochenGeorges |
src-radiobuttons.tgz | action | 1416 | 17 Dec 2004 - 18:54 | JochenGeorges |