Home » Community » Newbie corner » errors re strings
Re: errors re strings - [message #46368 is a reply to message #46366] |
Fri, 29 April 2016 13:33   |
nlneilson
Messages: 644 Registered: January 2010 Location: U.S. California. Mojave &...
|
Contributor |
|
|
omari wrote on Fri, 29 April 2016 01:59Hi,
the conversion from Upp::String to std::string is explicit by the function member ToStd()
String s_upp;
std::string s_std = s_upp.ToStd();
IMO the easier way is to avoid std::string, Upp::String is simpler, faster.
here a solution for this error:
String Min = Tm.Mid(2,2);
String Tmz = Hr + ":" + Min + ":" + Tm.Mid(4,2);
count<<=Tmz;
Hi Omari Thanks Your solution code worked first time and I appreciate the explanation, that is how I learn the most, code that works and then the reason behind it.
Neil
[Updated on: Wed, 25 May 2016 12:02] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Wed Apr 30 20:47:07 CEST 2025
Total time taken to generate the page: 0.00583 seconds
|