I've tried your case as custom section, adding the click event to show optiongroup's value:
Code:
//// Lianja custom section for page "page1" section "section1"
//
namespace f4395
define class page1_section1 as section
enddefine
define class optiongroup1_5cb0s8plw as optiongroup
** Properties
ButtonCount = 5
Value = 1
// The public "welche" has everytime the value which it had before the form ("beginning value")
ControlSource = "welche"
caption='OptionGroup'
Height = 121
Left = 64
Top = 36
Width = 212
Name = "Optiongroup1"
Option1.Caption = "Diakone"
Option1.Value = 1
Option1.Height = 17
Option1.Left = 5
Option1.Top = 5
Option1.Width = 64
//Option1.AutoSize = .T.
Option1.Name = "Option1"
Option2.Caption = "Pastoralreferenten"
Option2.Value = 2
Option2.Height = 17
Option2.Left = 5
Option2.Top = 27
Option2.Width = 120
//Option2.AutoSize = .T.
Option2.Name = "Option2"
Option3.Caption = "Gemeindereferenten"
Option3.Value = 3
Option3.Height = 17
Option3.Left = 5
Option3.Top = 50
Option3.Width = 132
proc click
messagebox(transform(value))
endproc
enddefine
proc page1_section1
page1_section1 = createobject("page1_section1")
page1_section1.addobject("opg", "optiongroup1_5cb0s8plw")
return page1_section1
The Click shows correct value of the optiongroup.
Bookmarks