Option Button Property (groupname)

Option Button Property (groupname)

Anonymous
Not applicable
344 Views
2 Replies
Message 1 of 3

Option Button Property (groupname)

Anonymous
Not applicable
If i define a variable called
Optionname = "Set1"

and change the value of .groupname of the option button

.groupname = Optionname

Why doesn't the value of the groupname property equal "Set1" at runtime?
0 Likes
345 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
post your code, it should..

Dim grpName As String
grpName = "fred"
OptionButton1.GroupName = grpName
MsgBox OptionButton1.GroupName



--
gl - Paul
wrote in message news:5009052@discussion.autodesk.com...
If i define a variable called
Optionname = "Set1"

and change the value of .groupname of the option button

.groupname = Optionname

Why doesn't the value of the groupname property equal "Set1" at runtime?
0 Likes
Message 3 of 3

Anonymous
Not applicable
I figured it out. My variable was returning a null value at runtime. I fixed it. Works now. Thanks Paul.
0 Likes