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 » ArrayCtrl, HeaderCtrl & GridCtrl » Export Ctrl to qtf table
Re: Export Ctrl to qtf table [message #33952 is a reply to message #33934] Fri, 30 September 2011 13:19 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Added a couple of functions:

#include <CtrlLib/CtrlLib.h>
#include <Report/Report.h>

using namespace Upp;

GUI_APP_MAIN
{
	ArrayCtrl a;
	a.AddColumn("First");
	a.AddColumn("Second");
	a.AddColumn("Third");
	for(int i = 0; i < 100; i++) {
		a.Add(i, GetSysDate() + i, FormatIntRoman(i));
		if(i % 3 == 0)
			a.Select(i);
	}
	a.MultiSelect();
	a.SetClipboard();
	
	TopWindow win;
	win.Add(a.SizePos());
	win.Run();
	
	QtfReport(a.AsQtf() + "&&" + a.AsQtf(false, false));
	SaveFile("u:/ac1.csv", a.AsCsv());
	SaveFile("u:/ac2.csv", a.AsCsv(true, ',', false));
}
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: ArrayCtrl copy to the Clipboard
Next Topic: [SOLVED] GridCtrl sql update
Goto Forum:
  


Current Time: Wed May 08 06:24:14 CEST 2024

Total time taken to generate the page: 0.01262 seconds