Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 15:52 Go to next message
Francis BACQUET is currently offline Francis BACQUETFriend
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

Re: Number are modified as arguments [message #1441059 is a reply to message #1439857] Thu, 09 October 2014 07:55 Go to previous messageGo to next message
Olga Yurchuk is currently offline Olga YurchukFriend
Messages: 245
Registered: September 2014
Senior Member

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.


Yours sincerely,
Olga.
Re: Number are modified as arguments [message #1441081 is a reply to message #1441059] Thu, 09 October 2014 08:26 Go to previous message
Francis BACQUET is currently offline Francis BACQUETFriend
Messages: 46
Registered: September 2014
Member
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 Sep 19 23:49:33 GMT 2024

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

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

Back to the top