OpenDCL Forums

OpenDCL => Studio/Dialog Editor => Topic started by: chairpak on February 17, 2009, 01:15:05 PM

Title: combo/radio saving variables
Post by: chairpak on February 17, 2009, 01:15:05 PM
Hello,
First time poster, Long time (20+years) Lisp writer.

I would like to grab selections from a combo list and a radio selection to use as selections in my routines:
(setq combo1_selection "some value set at that location")
(setq radio_choice "opt_1, opt2, or opt3")

I have read many posts and cannot figure out which is the best way to grab these choices.

Any help is appreciated and thank you in advance.


Title: Re: combo/radio saving variables
Post by: BazzaCAD on February 17, 2009, 01:56:07 PM
I'm sorry I don't quite understand the question.
Is this a DCL question or an OpenDCL question?
Have you read through the Tutorial yet? http://www.opendcl.com/forum/index.php?topic=501.0 (http://www.opendcl.com/forum/index.php?topic=501.0)

You'll need to use events to check which items are selected.
You could use an "OnClicked" event on an OK button & check each control or you could use an "OnSelChanged" event on an OptionList control.
It all depends on what you're trying to do....

Title: Re: combo/radio saving variables
Post by: chairpak on February 17, 2009, 02:59:05 PM
Thank you BazzaCAD for the quick response.
I found the list of action commands.
This is what I was looking for.
I'm sorry that I over simplified the question.