ok, i have done it on my own :)
if anyone wants to know...:
set hex 8C
set is_hex [regexp {^([0-9A-F]+)$} $hex]
set space " "
set nspace ""
if {$is_hex == 1} {
set length_of_string [string length $hex]
for {set i 0} {$i < $length_of_string} {incr i} {
set...
Hi there!
Is there a good procedure, where i can convert a hex number to a binary number? e.g. i want something like "convert FF" and the result should be "11111111".
Can anybody help me with a small bit of code? I have no clue other than to use many switch cases...
Thnx...
Hi,
I'm trying to get a button to do something, with a binding command. In order to get the right action, i'm using an array (2D). With a label just before the button i'm getting the right value of the array, but in the binding, the value (or the first dimension of the array) seems to have...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.