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.
... 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);