Hexa value appears while converting string value to int.
-
- Posts: 16
- Joined: Wed Aug 17, 2016 9:26 am
Hexa value appears while converting string value to int.
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,
-
- Posts: 16
- Joined: Wed Aug 17, 2016 9:26 am
Re: Hexa value appears while converting string value to int.
when value is other that range of 64.
- Attachments
-
- Capture2.PNG (4.52 KiB) Viewed 822 times
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Hexa value appears while converting string value to int.
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.
Regards,
Bernhard
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.
Regards,
Bernhard
-
- Posts: 16
- Joined: Wed Aug 17, 2016 9:26 am
Re: Hexa value appears while converting string value to int.
Ok, Thanks 
Regards,
Manish

Regards,
Manish