Page 1 of 1

Hexa value appears while converting string value to int.

Posted: Wed Aug 24, 2016 10:23 am
by manishrn91
Capture.PNG
Capture.PNG
Hi All


We are using Ranorex 6.0.1,While writing a code in usercode we have observed one strange behavior when converting string to Int.
Code:
string count="64";
int a= Convert.ToInt32(count);

Whenever the value for "count" was 2 raise to power of 6,7 etc the value in "a" was taken as hexadecimal decimals like 64(0x40) ... so on, and rest all others it took whole numbers like if count was 81 "a" was assigned 81.

Could you please tell us why this is happening?


Regards,

Re: Hexa value appears while converting string value to int.

Posted: Wed Aug 24, 2016 10:25 am
by manishrn91
when value is other that range of 64.

Re: Hexa value appears while converting string value to int.

Posted: Thu Aug 25, 2016 12:23 pm
by Support Team
Hello manishrn91,

thank you for reporting the issue. I added an entry in our bug tracking system. You can solve this by changing the setting "Show values in hexadecimal" twice in the "Local variables" dialog in Ranorex Studio.
LocalVariablesDialog.png
Regards,
Bernhard

Re: Hexa value appears while converting string value to int.

Posted: Fri Sep 09, 2016 6:59 am
by manishrn91
Ok, Thanks :)


Regards,
Manish