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 strongm 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: *

  1. paskali

    float or integer: help with a script

    Ok, thanks!
  2. 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...
  3. paskali

    A very minimal text editor

    Thanks, of course i did know them; however i would want to see some original solution.
  4. paskali

    A very minimal text editor

    Thanks, the site you linked is very good; however i intend only tcl not tk, i would want to see any simple sample about text editors in console mode like vi, pico, etc...... However thanks again!
  5. 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.
  6. paskali

    How to make a choice without press enter

    I use cygwin on windows xp, i have solved by: [CODDE]#A simple script that print my name or my surname proc main {} { puts "What do you want to see printed on the screen?"; puts ""; puts "a: Pasquale"; puts "b: Frega"; puts ""; exec /bin/stty raw <@stdin; set choice...
  7. 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...
  8. paskali

    How to call a procedure with two or more given parameters

    According with previous suggestion, i have changed the scripts to avoid problems with incorrect input (e.g. a char or a string): ############################################ #A simple script that sum two given numbers# ############################################ proc Sum {number1 number2} {...
  9. paskali

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

    Ok, i had understood this. However, thanks.
  10. 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; ...
  11. 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