Skip to main content



      Home
Home » Eclipse Projects » RCP Testing Tool » Number are modified as arguments(Warning for number superior with 9 figures or begin with "0", "0x")
icon4.gif  Number are modified as arguments [message #1439857] Tue, 07 October 2014 11:52 Go to next message
Eclipse UserFriend
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 11:56] by Moderator

Re: Number are modified as arguments [message #1441059 is a reply to message #1439857] Thu, 09 October 2014 03:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi.
I created bug about this problem: https://bugs.eclipse.org/bugs/show_bug.cgi?id=446404 . We will fix it later.
Workaround is using concat.
Re: Number are modified as arguments [message #1441081 is a reply to message #1441059] Thu, 09 October 2014 04:26 Go to previous message
Eclipse UserFriend
In the meantime, I will use concat .

Thanks
Previous Topic:[SOLVED]Can I use "varargs" with proc?
Next Topic:[SOLVED] How can i exit proc before its end?
Goto Forum:
  


Current Time: Thu Jul 17 12:54:29 EDT 2025

Powered by FUDForum. Page generated in 0.38093 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top