hi all, i have wrote a simple script that take a number and return
either it is an integer or a float. However, if i make a mistake and
type a char or a string, it goes in crash and esc to prompt command.
My question is simple: how can i to resolve this behaviour? Below it is
my code...
Hi all, i want to make a simple script with few code that create a file with name given from its parameter (e.g. script file_name.txt), open a buffer in wich i write some lines then save them on the file with ctrl-s and exit with ctrl-q.
No more i want.
Hi all, i have a simple question, please read the following code:
#A simple script that print my name or my surname
proc main {} {
set choice;
puts "What do you want to see printed on the screen?";
puts "";
puts "a: Pasquale";
puts "b: Frega";
puts "";
?
if...
Hi, i am attempting to write a simple script to sum two given numbers:
#A simple script that sum two given numbers
proc Sum {number1 number2} {
return [expr $number1+$number2];
}
proc main {} {
puts "Sum between two numbers";
puts "";
puts -nonewline "Insert the numbers:"
flush stdout;
...
Hi all, i am new on this forum and i am "almost" new about tcl/tk.
OK, my question is simple:
i have write a simple script to count from 0 to any positive number; please read following:
#A simple script that make possible to count from 0 up to given positive number
proc main {} {
puts...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.