Stewart Allen wrote:
>
> On Mon, 16 Jun 1997, Craig Fielden-Windsor wrote:
>
> > Hi - can anyone tell me how to get vtcl to read the entry in a .entry box
> > as a variable so I can then pass it to a perl script as $ARGV[0]?
>
> <entry_widget> get
>
> will return the text. used like this:
>
> set a [.e get]
In the tutorial I encourage people to try out the "alias" feature.
If you set an alias for wigdets, frames, windows, etc, you don't have to
deal with the actual names, which can get unwieldy, especially if you
copy or cut/paste such widgets.
If your entry is given an alias of, say, "userid", the above becomes
set a [$widget(userid) get]
I prefer $widget(alias) to this real-life example (I use the pack
manager):
.top19.fra31.fra32.fra50.fra54.fra62.02
--
...RickM...