Home » U++ Library support » U++ Core » Value: String to int - problem or feature?
Re: Value: String to int - problem or feature? [message #36405 is a reply to message #36394] |
Thu, 24 May 2012 08:56   |
 |
mirek
Messages: 14267 Registered: November 2005
|
Ultimate Member |
|
|
dolik.rce wrote on Wed, 23 May 2012 14:42 |
Value v = "122";
if (v.Is<int>()) { ... }
else if (v.Is<String>()) { ... };
|
Also note the existence of IsNumber (returns true for int, double, int64 and bool) and IsString (returns true for String and WString), Value is the convertible to any of these 'compatible' types.
[Updated on: Thu, 24 May 2012 08:57] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Thu Aug 28 01:15:36 CEST 2025
Total time taken to generate the page: 0.06018 seconds
|