Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Option Buttons
Message
 
 
To
30/04/2001 16:01:09
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00501735
Message ID:
00501758
Views:
20
>>I have aready done this, but this is not my problem. Here is what I need: I open my form. Initial code runs to select the proper option button. At this time to view report button can be selected or the option can be changed by the user and then the view report button can be clicked. Now without writing code for each option button and a variable to hold the caption value, how can i analize the optiongroup to find the caption value of selected option?
>
>Are you talking about the actual Caption of the selected button?
>THISFORM.optiongroup.option1.CAPTION?
>
>If so I would do exactly what Erik said. I don't know of any other method where from the report you could tell what was selected in the optiongroup.
>
>Mike

Value of option group by default returns caption of the selected option. At least, this is how it works for me if the style is graphical (I don't think, it matters).

HTH
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform