Hey guys,
I have a Dialog, with several Groups defined and setup in the XML file. All 
that is great, and I have entered an individual ID for each Group. So, for 
instance, I will have the following Group IDs:
    Group_RetrieveInfo
    Group_SaveInfo
    Group_ExitingControls

Ok, what I want to do, is to change the Text property of one of the Groups - 
dynamically within my code. That is, based on some other activity and the state 
of some of the controls in the dialog, I want - let's say - the Text property 
of Group_SaveInfo to change. At one point, it could be set to "Personal", and 
at another case, it could be set to "Publicly". 

I have tried the following inside my EventHandler function, but keep getting an 
error. Guess, because the Group is not part of the Control collection. But 
then, what is the correct syntax, please?

' Code Snip-it:
If DObj.Control( "Checkbox_Personal" ).Checked Then
        DObj.Control( "Group_SaveInfo" ).Text = "Personal"    ' This line gives 
an error, that the DObj.Control is not valid.
Else
       DObj.Control( "Group_SaveInfo" ).Text = "General Public"
End If 
' Snip-it concludes.

Thanks for any corrections you may have for the above.

Regards,
David

Reply via email to