Answers

Question and Answer:

  Home  TCL

⟩ How increment a character? For example, I give a and I should get b?

set character "a"

set incremented_char [format %c [expr {[scan $character

%c]+1}]]

puts "Character before incrementing '$character' : After

incrementing '$incremented_char'"

 192 views

More Questions for you: