Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: paskali
  • Content: Threads
  • Order by date
  1. paskali

    float or integer: help with a script

    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...
  2. paskali

    A very minimal text editor

    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.
  3. paskali

    How to make a choice without press enter

    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...
  4. paskali

    How to call a procedure with two or more given parameters

    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; ...
  5. paskali

    input a char or a string but read a number: strange script behaviour

    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...

Part and Inventory Search

Back
Top