Name

set

set varName [value]

Set the value of variable varName to value and return the value. If value is omitted, return the current value of varName.

Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.