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 » docEdit /lineEdit to array
Re: docEdit /lineEdit to array [message #38392 is a reply to message #38379] Thu, 13 December 2012 14:34 Go to previous messageGo to previous message
navi is currently offline  navi
Messages: 107
Registered: February 2012
Location: Sydney, Australia
Experienced Member
prizzly wrote on Thu, 13 December 2012 07:21

But isn't there any limit to string length as I will be having few thousands of lines in docEdit.



I think U++ makers will be able to answer it best. I couldn't find anything on the manual but I would assume U++ String will be something similar to C++ std::string about which are the following comments found.


http://stackoverflow.com/questions/3649639/limit-on-string-s ize-in-c
Quote:


... There is no official limit on the size of a string. The software will ask your system for memory and, as long as it gets it, it will be able to add characters to your string...

... The only practical limit on string size in c++ is your available memory...

... std::string::max_size() will tell you the theoretical limit imposed by the architecture your program is running under. Other than that, as long as you have sufficient RAM and/or disk swap space, you can have std::strings of huge size...




prizzly wrote on Thu, 13 December 2012 07:21


Also, please suggest which method to use for appending new lines in docEdit.


// assuming your LineEdit Ctrl is called myLineEditCtrl
// i will do something like this:


String tmpStr(myLineEditCtrl.Get());

tmpStr<<"\nThis is a new line";

myLineEditCtrl.Set(tmpStr);
 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Why isn't the data getting inserted?
Next Topic: sessions in Skylark
Goto Forum:
  


Current Time: Sun Aug 24 11:25:20 CEST 2025

Total time taken to generate the page: 0.05370 seconds