From: <edd...@ag...> - 2003-12-11 15:04:01
|
Try: if {[info exists myvar]} { puts $myvar } > -----Original Message----- > From: tcl...@li... > [mailto:tcl...@li...]On Behalf Of > tcl...@li... > Sent: Wednesday, December 10, 2003 9:09 PM > To: tc...@li... > Subject: Tcl-win digest, Vol 1 #50 - 1 msg >=20 >=20 > Send Tcl-win mailing list submissions to > tc...@li... >=20 > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/tcl-win > or, via email, send a message with subject or body 'help' to > tcl...@li... >=20 > You can reach the person managing the list at > tcl...@li... >=20 > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Tcl-win digest..." >=20 >=20 > Today's Topics: >=20 > 1. Checking if variables exist (Sam) >=20 > --__--__-- >=20 > Message: 1 > From: "Sam" <sam...@my...> > To: "TCL List" <tc...@li...> > Date: Wed, 10 Dec 2003 22:32:09 -0000 > Subject: [WINTCL] Checking if variables exist >=20 > This is a multi-part message in MIME format. >=20 > ------=3D_NextPart_000_000D_01C3BF6D.72A1C250 > Content-Type: text/plain; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > Hi, >=20 > I'm looking for a quick fix for my code ;). Is there a way of=20 > checking =3D > if a variable exists during runtime. Thanks. >=20 > -Sam > ------=3D_NextPart_000_000D_01C3BF6D.72A1C250 > Content-Type: text/html; > charset=3D"iso-8859-1" > Content-Transfer-Encoding: quoted-printable >=20 > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3D3DContent-Type content=3D3D"text/html; =3D > charset=3D3Diso-8859-1"> > <META content=3D3D"MSHTML 6.00.2800.1264" name=3D3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D3D#dcdcdc> > <DIV><FONT face=3D3DArial size=3D3D2>Hi,</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2>I'm looking for a quick fix=20 > for my code =3D > ;). Is=3D20 > there a way of checking if a variable exists during runtime.=3D20 > Thanks.</FONT></DIV> > <DIV><FONT face=3D3DArial size=3D3D2></FONT> </DIV> > <DIV><FONT face=3D3DArial size=3D3D2>-Sam</FONT></DIV></BODY></HTML> >=20 > ------=3D_NextPart_000_000D_01C3BF6D.72A1C250-- >=20 >=20 >=20 >=20 > --__--__-- >=20 > _______________________________________________ > Tcl-win mailing list > Tc...@li... > https://lists.sourceforge.net/lists/listinfo/tcl-win >=20 >=20 > End of Tcl-win Digest >=20 |