Jump to content
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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


 

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.

×
×
  • Create New...