Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
nlneilson is currently offline  nlneilson
Messages: 644
Registered: January 2010
Location: U.S. California. Mojave &...
Contributor
omari wrote on Fri, 29 April 2016 01:59
Hi,

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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: gui , how to switch between the visual dlg.lay to the text view
Next Topic: Network remote control
Goto Forum:
  


Current Time: Fri May 10 15:14:23 CEST 2024

Total time taken to generate the page: 0.02637 seconds