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 » U++ Library support » U++ Library : Other (not classified elsewhere) » Convert Upp::String to int
Convert Upp::String to int [message #47065] Fri, 25 November 2016 14:11 Go to next message
lovmy is currently offline  lovmy
Messages: 34
Registered: November 2015
Member

Hi,

what's the method to convert Upp::String to int ?

Thank you for your response.
Re: Convert Upp::String to int [message #47066 is a reply to message #47065] Fri, 25 November 2016 22:13 Go to previous messageGo to next message
Klugier is currently offline  Klugier
Messages: 627
Registered: September 2012
Location: Poland, Kraków
Contributor
Hello,

Try to use StrInt(const char* s). To revert this operation use IntStr. I strongly believe that this methods should be in official documentation...

Edit:
The documentation is updated. The results should be seen tomorrow.

Sincerely,
Klugier


Ultimate++ - one framework to rule them all.

[Updated on: Fri, 25 November 2016 23:58]

Report message to a moderator

Re: Convert Upp::String to int [message #47067 is a reply to message #47065] Sat, 26 November 2016 17:10 Go to previous message
mr_ped is currently offline  mr_ped
Messages: 799
Registered: November 2005
Location: Czech Republic - Praha
Contributor

For extensive formatting of int -> string you may also want to check this part of docs:

http://www.ultimatepp.org/src$Core$FormatFn$en-us.html

(I know the question was other way around, but just for completeness)

[Updated on: Sat, 26 November 2016 17:11]

Report message to a moderator

Previous Topic: GUI and Thread
Next Topic: Append line into LineEdit or DocEdit
Goto Forum:
  


Current Time: Tue Sep 17 05:15:03 CEST 2019

Total time taken to generate the page: 0.03429 seconds