The syntax of creating a procedure is
proc procedureName {arguments} {
body
}
Example:
proc helloWorld {} {
puts "Hello, World!"
}
helloWorld
Result:
Hello, World!
Last Updated on 2022-01-04 by gantovnik
Jan 4, 2022 | tcl | 0 comments
The syntax of creating a procedure is
proc procedureName {arguments} {
body
}
Example:
proc helloWorld {} {
puts "Hello, World!"
}
helloWorld
Result:
Hello, World!
Last Updated on 2022-01-04 by gantovnik
Subscribe now to keep reading and get access to the full archive.
Recent Comments