Jump to content
Developer Wiki and Function Reference Links Read more... ×
michaelk

What is the syntax for using radio buttons?

Recommended Posts

What is the syntax for getting the results of radio buttons?

 

My understanding is that the radio buttons are string values.

 

Assume I have a parameter called MyRadioButton and the options are Choice 1, Choice 2, Choice 3

 

I thought I could do something like:

 

CASE pMyRadioButton OF

 

'Choice 1' : DO BEGIN

…do stuff…

END;

 

'Choice 2' : DO BEGIN

…do other stuff…

END;

 

'Choice 3' : DO BEGIN

…something else altogether…

END;

 

END;

 

But it seems like that's not the way to get the string value of pMyRadioButton.

 

Do I need to GetRField? (That didn't work either).

 

What am I missing?

 

Thanks!

 

 

 

 

 

 

Share this post


Link to post

AHA!

 

CASE OF working on Boolean, Integers, and CHAR.  Not strings.

 

IF / THEN works (if you remember to use the correct syntax). 🙂

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

 

7150 Riverwood Drive, Columbia, Maryland 21046, USA   |   Contact Us:   410-290-5114

 

© 2018 Vectorworks, Inc. All Rights Reserved. Vectorworks, Inc. is part of the Nemetschek Group.

×