logo
down
shadow

TCL QUESTIONS

TCL problem: imported function get bracket({}) added around the "text"
TCL problem: imported function get bracket({}) added around the "text"
Hope this helps If you do not want to pass an arbitrary, unknown numbers of arguments to your cproc, do not use args (which has a special meaning as a parameter name), but msg, for instance.
TAG : tcl
Date : January 02 2021, 06:48 AM , By : user134570
In tcl how do I get fractional part of given number
In tcl how do I get fractional part of given number
will help you You've discovered the fun to be had with floating point numbers! The trick is to get a guess of how many digits there are after the floating point (doesn't have to be too accurate!) and use that with format to do the rounding off.
TAG : tcl
Date : January 02 2021, 06:48 AM , By : Ashaea
I can understand "global var" in Tcl, but what does "global $var" mean?
I can understand "global var" in Tcl, but what does "global $var" mean?
I wish this help you The code is a bit strange, and is actually buggy.It should have been this instead (0 in quotes for syntax highlighting reasons only):
TAG : tcl
Date : January 02 2021, 06:48 AM , By : orlandoferrer
operator "OR" TCL
operator "OR" TCL
wish of those help No.If you want to know which variable is wrong, you have to test the specific variable.
TAG : tcl
Date : January 02 2021, 06:48 AM , By : deanschang
Need help extracting specific lines from a changing logfile using expect
Need help extracting specific lines from a changing logfile using expect
hope this fix your issue I'm trying to use an expect script to access a remote device via telnet, read/save the remote "EVENTLOG" locally, and then extract specific lines (serial numbers) from the log file. Problem is the log files are constantly cha
TAG : tcl
Date : December 27 2020, 04:28 PM , By : 40a
how to return variable from proc
how to return variable from proc
seems to work fine I try to convert script from perl to tcl. perl script is working well... but tcl is not. I think because of pointer. I don't know how to use pointer in tcl. Can you update script to return variable properly..? , To return a list (o
TAG : tcl
Date : December 24 2020, 12:45 PM , By : Marianisho
Check abnormal connection drop before writing
Check abnormal connection drop before writing
I hope this helps you . set chan [socket 123.345.45.33 23] - socket connection open is success fconfigure on the channel is success These are simple enough: if there's a failure, you get a Tcl error, which is a sort of exception. You can use catch or
TAG : tcl
Date : December 23 2020, 11:01 AM , By : Habikki
Tcl backslash substitution is not working the way I'd imagined
Tcl backslash substitution is not working the way I'd imagined
it should still fix some issue I'm not too clear on tcl's parsing of backslash in various situations, but empirically what should work would be to replace the two characters \r by a real carriage-return, because this is what you will get from the exp
TAG : tcl
Date : December 01 2020, 04:52 PM , By : Bado
Recreating a Vivado project from a TCL file without copying the sources over
Recreating a Vivado project from a TCL file without copying the sources over
around this issue I've used write_project_tcl to create a TCL script from a Vivado project which can then be used to re-create the project's structure. If I run the script via vivado -mode batch, it creates a directory structure and copies source HDL
TAG : tcl
Date : December 01 2020, 04:47 PM , By : Steve Jones
TCL : How to use variable inside grep in exec
TCL : How to use variable inside grep in exec
seems to work fine I take it that your grep requires the brackets to be escaped? The first Way above will strip away the backslashes, and the second and third won't substitute the variable.The easiest way to do this is probably to use format:
TAG : tcl
Date : November 03 2020, 09:01 AM , By : Senthil
How to avoid the - from my data in tcl?
How to avoid the - from my data in tcl?
fixed the issue. Will look into that further i am new to tcl. While i am learning some basic command in tcl, i found this problem that i have no idea to solve it.
TAG : tcl
Date : November 02 2020, 09:01 AM , By : ThF
I want to hide the windows terminal every time I run a tcl script?
I want to hide the windows terminal every time I run a tcl script?
Any of those help I'm using Windows 8.1 and I'm running a tcl script that checks the difference between files: , The problem What Donal said.
TAG : tcl
Date : November 02 2020, 04:01 AM , By : mgaspar
how to read an array in one proc to another proc as proc are in same namespace
how to read an array in one proc to another proc as proc are in same namespace
With these it helps , The content::display needs to have:
TAG : tcl
Date : October 05 2020, 03:00 PM , By : AdrianB
Usage of set command
Usage of set command
like below fixes the issue I'd like to understand following code (was provided by third-party vendor) to that of simpler version. , There's no reason. Let me explain how the first block works.
TAG : tcl
Date : October 04 2020, 03:00 AM , By : Marianisho
get latest version using tcl script
get latest version using tcl script
I hope this helps you . How does one get latest folder v005 using tcl expression in single line as above.
TAG : tcl
Date : October 01 2020, 09:00 AM , By : ralph okochu
How can I get the code line number along with errorinfo but prior to 8.5?
How can I get the code line number along with errorinfo but prior to 8.5?
may help you . The easiest approach is to parse the errorInfo variable. Here's what an example looks like:
TAG : tcl
Date : October 01 2020, 01:00 AM , By : Thierry Brunet
A problem with creating directories in tcl
A problem with creating directories in tcl
This might help you You should check that the current directory (puts [pwd]) is the directory where you expect the new directory to be created in instead of being somewhere where normal users can't write by default. It is very easy for that to be dif
TAG : tcl
Date : September 30 2020, 12:00 AM , By : Ravenal
TCL Expect: how to remove a trailing newline
TCL Expect: how to remove a trailing newline
I wish this help you By default string trim will remove any whitespace-type characters from either end of the string, so you could just set x [string trim $lx].I would be inclined to do the whole processing in Expect like this:
TAG : tcl
Date : September 25 2020, 02:00 PM , By : Chris Tattum
can't read "env": variable is array
can't read "env": variable is array
it should still fix some issue parray was introduced in Tcl8.5 and is used to 'puts' arrays:
TAG : tcl
Date : September 24 2020, 07:00 AM , By : Priyatna Harun
how to pull out every string between / and ; in tcl
how to pull out every string between / and ; in tcl
Any of those help You will have to use capture groups, and prevent any ; or / in your matches. In code, that means:
TAG : tcl
Date : September 21 2020, 11:00 PM , By : Sandeep Arneja
Tcl object method called as variable
Tcl object method called as variable
seems to work fine How can one execute an object method as a variable? , Or:
TAG : tcl
Date : September 21 2020, 08:00 AM , By : Mighty Mac
shadow
Privacy Policy - Terms - Contact Us © scrbit.com