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 |
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.
|
|
|
|
|
Goto Forum:
Current Time: Fri Nov 01 00:10:52 CET 2024
Total time taken to generate the page: 0.02434 seconds
|