Suppose you’re creating an order entry screen. For the options “Cash, Check, or Charge,” you place three adjacent RadioButton objects, set the group property of the first RadioButton to true, and set the group property of the next two to false. For the options “Phone, Fax, or E-mail,” you place three more RadioButton objects with the group property of the first set to true to start the new group.

this.RADIOBUTTON1 = new RADIOBUTTON(this) 

with (this.RADIOBUTTON1) 

   height = 1.08 

   left = 9.3333 

   top = 1.32 

   width = 14.4444 

   text = "Cash" 

   group = true    // First RadioButton group 

   value = true    // Default is selected 

endwith 

 

this.RADIOBUTTON2 = new RADIOBUTTON(this) 

with (this.RADIOBUTTON2) 

   height = 1.08 

   left = 9.3333 

   top = 3.68 

   width = 14.4444 

   text = "Check" 

endwith 

 

this.RADIOBUTTON3 = new RADIOBUTTON(this) 

with (this.RADIOBUTTON3) 

   height = 1.08 

   left = 9.3333 

   top = 6.04 

   width = 14.4444 

   text = "Charge" 

endwith 

 

this.RADIOBUTTON4 = new RADIOBUTTON(this) 

with (this.RADIOBUTTON4) 

   height = 1.08 

   left = 9.3333 

   top = 8.4 

   width = 14.4444 

   text = "Phone" 

   group = true    // Next RadioButton group 

   value = true 

endwith 

 

//(etc...)