Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run 2 commands with radiobutton select in TK

Status
Not open for further replies.

ee1

Programmer
May 31, 2011
25
IL
Hi all,
i have created a radiobutton:
radiobutton .a -value "1" -text "a" -variable a -command "proc_a"

if i want to run one more proc in addition to tis one when the radiobutton is pressed how should i write it?

thanks!
 
Hi

Code:
radiobutton [teal].[/teal]a [teal]-[/teal]value [green][i]"1"[/i][/green] [teal]-[/teal]text [green][i]"a"[/i][/green] [teal]-[/teal]variable a [teal]-[/teal]command [green][i]"proc_a; proc_b"[/i][/green]

[gray]# however code is usually enclosed in braces ( {} ) :[/gray]

radiobutton [teal].[/teal]a [teal]-[/teal]value [green][i]"1"[/i][/green] [teal]-[/teal]text [green][i]"a"[/i][/green] [teal]-[/teal]variable a [teal]-[/teal]command [teal]{[/teal]proc_a[teal];[/teal] proc_b[teal]}[/teal]


Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top