I knew what a global variable was, I just didnt know how to set them via Vtcl. However I looked up the info on the name space and I am now practicing on using this method since it seems to be the preferred way. I am learning strickly from Welches book, he does everything manually. Its very difficult to apply what I have learned so far into a GUI but I absorb what you guys talk about here.


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: vtcl-user digest, Vol 1 #405 - 3 msgs
Date: Thu, 20 Nov 2003 20:56:15 -0800

Send vtcl-user mailing list submissions to
        [EMAIL PROTECTED]

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/vtcl-user
or, via email, send a message with subject or body 'help' to
        [EMAIL PROTECTED]

You can reach the person managing the list at
        [EMAIL PROTECTED]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of vtcl-user digest..."


Today's Topics:


   1. Re: Real silly question (Larry W. Virden)
   2. Re: Real silly question (Damon Courtney)
   3. Re: vTcl project dialog. ([EMAIL PROTECTED])

--__--__--

Message: 1
Date: Thu, 20 Nov 2003 07:45:22 -0500 (EST)
From: "Larry W. Virden" <[EMAIL PROTECTED]>
Subject: Re: [vtcl-user] Real silly question
To: [EMAIL PROTECTED]


From: Damon Courtney <[EMAIL PROTECTED]>


>   You'll need to global each variable before setting
> it.

Really?

Why can't you just say:

set ::foo 1
set ::bar 2

and then use them as

puts $::foo
set mycode::var $::bar

or whatever? I really prefer to see people using the $::variable notation,
getting people used to using namespaces - see http://wiki.tcl.tk/namespace
for more details.
--
Tcl - The glue of a new generation. <URL: http://wiki.tcl.tk/ >
Larry W. Virden <mailto:[EMAIL PROTECTED]> <URL: http://www.purl.org/NET/lvirden/>
Even if explicitly stated to the contrary, nothing in this posting should
be construed as representing my employer's opinions.
-><-



--__--__--


Message: 2
Date: Thu, 20 Nov 2003 09:49:43 -0600 (CST)
From: Damon Courtney <[EMAIL PROTECTED]>
To: "Larry W. Virden" <[EMAIL PROTECTED]>
cc: [EMAIL PROTECTED]
Subject: Re: [vtcl-user] Real silly question

> Really?
>
> Why can't you just say:
>
> set ::foo 1
> set ::bar 2
>
> and then use them as
>
> puts $::foo
> set mycode::var $::bar
>
> or whatever? I really prefer to see people using the $::variable notation,
> getting people used to using namespaces - see http://wiki.tcl.tk/namespace
> for more details.


    True, but in this case, it looked to me like the user didn't have
an understanding of global variables.  So, I thought I'd show him the
global command. 0-]  I, personally, use the above method in most cases
as well.

D



--__--__--

Message: 3
Date: Thu, 20 Nov 2003 23:01:02 -0500 (EST)
Subject: Re: [vtcl-user] vTcl project dialog.
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>

Greetings,

>     That being said, the new app (tentatively titled Tk Builder) has a
> full plugin architecture that allows it to be easily extended with
> almost anything.  I think the future of vTcl may end up becoming a
> plugin of Tk Builder.

On the topic of a name for your app it looks like there is already a
TkBuilder app:

http://sawpit.iwarp.com/

Perhaps a name of:

vTkGB - Visual Tk GUI Builder
vTkGUI - Visual Tk GUI
TkGUIBuilder - Tk GUI Builder

Just some ideas. Please let us know when you have a sneak peak.

Thanks.

----------
RJEnt
Linux Solutions





--__--__--

_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user


End of vtcl-user Digest

_________________________________________________________________
Need a shot of Hank Williams or Patsy Cline? The classic country stars are always singing on MSN Radio Plus. Try one month free! http://join.msn.com/?page=offers/premiumradio




-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user

Reply via email to