Number are modified as arguments [message #1439857] |
Tue, 07 October 2014 15:52 |
Francis BACQUET Messages: 46 Registered: September 2014 |
Member |
|
|
Hello,
i realised a simple test. I display value directly or with a new proc.
The results are differents.
proc test [val msg ""] {
show-alert $msg
//same results, values modified.
//show-alert [$msg | str]
//show-alert [concat $msg]
}
//value display is same
show-alert 010
//value is modified in 8, base 8
test 010
test "010"
//value display is same
show-alert 2222222222
//value is modified in 2.222222222E9
test 2222222222
test "2222222222"
//value display is same
show-alert "0x010"
//value is modified in 16, base 16
test "0x010"
//it's good but i need to remember
test [concat 010]
test [concat 2222222222]
test [concat 0x010]
I need to declare my values with "concat". There is a solution which my proc do it conversion? In my real application my values are number phone, fidelity card, client number , ... and i set the value in text-area.
[Updated on: Tue, 07 October 2014 15:56] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03755 seconds