hai yogi
Tcl Scripting
Tcl scripting
Friday, October 31, 2014
Monday, October 28, 2013
Displaying output
1. How to display output by using tcl script?
Answer:
1. To display text by using tclscript we will use "puts".
Syntax:
1.puts "text to display"
2.puts {text to display}
examples:
puts "Welcome to yogitcl.blogspot.com"
o/p: Welcome to yogitcl.blogspot.com
puts {Welcome to yogianderoidev.blogspot.com}
o/p: Welcome to yogitcl.blogspot.com
2. How to display value of a variable ?
Syntax:
1.puts "$varaible"
example:
set a 10
puts "$a"
o/p: 10
3.How to display a variable ?
Syntax :
puts {$varaible}
puts \$variable
example:
puts {$x}
o/p: $x
puts \$integervalue
o/p: $integervalue
Answer:
1. To display text by using tclscript we will use "puts".
Syntax:
1.puts "text to display"
2.puts {text to display}
examples:
puts "Welcome to yogitcl.blogspot.com"
o/p: Welcome to yogitcl.blogspot.com
puts {Welcome to yogianderoidev.blogspot.com}
o/p: Welcome to yogitcl.blogspot.com
2. How to display value of a variable ?
Syntax:
1.puts "$varaible"
example:
set a 10
puts "$a"
o/p: 10
3.How to display a variable ?
Syntax :
puts {$varaible}
puts \$variable
example:
puts {$x}
o/p: $x
puts \$integervalue
o/p: $integervalue
Introduction
Welcome to Tcl scripting Language Blog.
Topics will be covered in this Blog.
1. Tcl scripting Syntax's
2. Theory
3.Sample Programs
4. Interview Questions
Topics will be covered in this Blog.
1. Tcl scripting Syntax's
2. Theory
3.Sample Programs
4. Interview Questions
Subscribe to:
Posts (Atom)