U++ framework
Do not panic. Ask here before giving up.

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 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Out of memory panic
Next Topic: Serialize of derived classes
Goto Forum:
  


Current Time: Tue Jun 16 07:18:10 GMT+2 2026

Total time taken to generate the page: 0.00504 seconds