setting a radiogroup selection as default

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
User avatar
aboredprogrammer
Junior Coder
Posts: 40
Joined: Wed Jan 27, 2010 6:31 am

setting a radiogroup selection as default

Post by aboredprogrammer » Thu Feb 11, 2010 9:11 pm

Hello,

I have a radiogroup with the 3 options. At the start-up I want one of them to always be ticked. How do I do this?

Thanks
aboredprogrammer

User avatar
JRL
Automation Wizard
Posts: 3529
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Fri Feb 12, 2010 1:52 pm

The number at the end of the radiogroup line will set your default. the system is zero based so the first item is "0". If you want nothing selected by default the number is "-1". In the sample the number is 2 so the third item will be pre-selected

Code: Select all

Dialog>Dialog1
   Caption=Dialog1
   Width=445
   Height=250
   Top=272
   Left=89 RadioGroup=Itrms,msRadioGroup1,119,29,185,105,Item1%CRLF%Item2%CRLF%Item3%CRLF%Item4,2
EndDialog>Dialog1

Show>dialog1,res1

User avatar
aboredprogrammer
Junior Coder
Posts: 40
Joined: Wed Jan 27, 2010 6:31 am

Post by aboredprogrammer » Fri Feb 12, 2010 6:15 pm

Thanks JRL,

I actually figured this out last night and was trying to post, but it kept on saying "You cannot make another post so soon, please try again in a little while" and it was doing that for hours.

However, thank you for responding :)
aboredprogrammer

User avatar
Bob Hansen
Automation Wizard
Posts: 2475
Joined: Tue Sep 24, 2002 3:47 am
Location: Salem, New Hampshire, US
Contact:

Post by Bob Hansen » Fri Feb 12, 2010 6:41 pm

aboredprogrammer wrote:"You cannot make another post so soon, please try again in a little while"
I have never seen that message in all the years I have been here. It definitely is not from the forum software, or from the MJT hosting server. You will see that many posts are almost as fast as real time chats.
Hope this was helpful..................good luck,
Bob
A humble man and PROUD of it!

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts