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 » Repeated Question: How to use Clipboard in DB(SqLite3)?
Repeated Question: How to use Clipboard in DB(SqLite3)? [message #13331] Wed, 02 January 2008 02:40 Go to previous message
fuqr is currently offline  fuqr
Messages: 16
Registered: July 2007
Location: Singapore
Promising Member
Dear UPP experts,
Happy New Year!

I tried Clipboard() in HomeBudget:
==========================================================
.........
categories.WhenInsertRow = THISBACK(InsertCategory);
.........
categories.Appending().Removing().Editing().Clipboard();
..........
============================================================ =
But When copy any multiple rows, only one row data can be done when "paste as Appended".
The SQL statement in recorded file show the data in cell are NULL:
"SQL* insert into CATEGORIES(GR_ID, NAME, DEFVALUE, PM, INNEWMONTH) values (4, NULL, NULL, -1, 0)..."

Maybe it's a UPP bug?

I also noticed that the Paste and write to SQLite3 function can be coded as follows:
===================================
void gridctrl::Paste(int mode)
{
if(!clipboard)
return;
Gridclipboard gc = Getclipboard();
if(gc.data.IsEmpty())
....................
======================================
But what is the name(XXX) of the CALLBACK I can use like below:
categories.XXX = THISBACK1(Paste,a);

Thanks in Advance.
Razz
 
Read Message
Read Message
Read Message
Previous Topic: Howto disable Insert and Append?
Next Topic: Problem with sort of the array with embedded ctrl
Goto Forum:
  


Current Time: Tue Jun 17 04:35:30 CEST 2025

Total time taken to generate the page: 0.05327 seconds