Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » ArrayCtrl::SetClipboard does not set \r\n in rows
ArrayCtrl::SetClipboard does not set \r\n in rows [message #53135] |
Fri, 06 March 2020 14:17 |
|
koldo
Messages: 3356 Registered: August 2008
|
Senior Veteran |
|
|
String ArrayCtrl::AsText(String (*format)(const Value&), bool sel,
const char *tab, const char *row,
const char *hdrtab, const char *hdrrow) const
{
String txt;
if(hdrtab) {
for(int i = 0; i < GetColumnCount(); i++) {
if(i)
txt << hdrtab;
txt << (*format)(HeaderTab(i).GetText());
}
if(hdrrow)
txt << hdrrow;
}
bool next = false;
for(int r = 0; r < GetCount(); r++)
if(!sel || IsSel(r)) {
if(!next)
txt << row; // \r\n is just included for the first row
for(int i = 0; i < GetColumnCount(); i++) {
if(i)
txt << tab;
txt << (*format)(GetConvertedColumn(r, i));
}
next = true;
}
return txt;
}
Best regards
Iñaki
|
|
|
|
|
|
Goto Forum:
Current Time: Thu Apr 18 08:41:17 CEST 2024
Total time taken to generate the page: 0.02682 seconds
|