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++ Core » conversion between data of a cell of the arrayctrl to int
conversion between data of a cell of the arrayctrl to int [message #2564] Tue, 18 April 2006 00:11 Go to previous message
forlano is currently offline  forlano
Messages: 1185
Registered: March 2006
Location: Italy
Senior Contributor
Hello,

to prevent the crash of my application I used the following conversion to send in the EditInt editRatNat an integer taken from a cell of the arrayctrl

 editRatNat <<= atoi( AsString(arr.Get(int_row, "RatNat")) );   


now it works but it was necessary to add even an
#include <cstdlib>
that has the taste of C. Now I'm not sure if atoi() can work with String or at some moment the application will crash. I've ALT+J in String.cpp to understand if AsString return a C string of something else. The result of the investigation was a nightmare Smile .
The question: does exist a smart U++ way to produce the correct cast or what I have done is enough?

Luigi

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: NFormat should check if args were left
Next Topic: Is there a function to remove leading white space?
Goto Forum:
  


Current Time: Mon May 20 10:36:12 CEST 2024

Total time taken to generate the page: 0.00799 seconds