srinu


{ City } bangalore
< Country > india
* Profession * tech lead
User No # 54867
Total Questions Posted # 1
Total Answers Posted # 2

Total Answers Posted for My Questions # 3
Total Views for My Questions # 20603

Users Marked my Answers as Correct # 9
Users Marked my Answers as Wrong # 1
Questions / { srinu }
Questions Answers Category Views Company eMail

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

3 Tcl 20603




Answers / { srinu }

Question { 9298 }

Where can find the sample tcl programs?


Answer

Please use below link to get the TCL tutor.

There are links to other online tutorials at
http://www.msen.com/~clif/Tcl.html


I felt that it is most useful for TCL developers [Beginners]
for quick reference.

Is This Answer Correct ?    3 Yes 0 No

Question { 20603 }

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


Answer

set character "a"
set incremented_char [format %c [expr {[scan $character
%c]+1}]]
puts "Character before incrementing '$character' : After
incrementing '$incremented_char'"

Is This Answer Correct ?    6 Yes 1 No