Solved

About FarPoint's Spread Clipboard

Posted on 2003-10-30
5
890 Views
Last Modified: 2013-12-25
Hi,

I want to know if it's possible to clip the datacell just before the user makes a change in a vaSpread control... something like BeforeChangeDataCell( ). Because, I'm trying give the possibility to the user to cancel is modification without makes an SQL Query.

thanks.

0
Comment
Question by:PapaOne
  • 3
  • 2
5 Comments
 
LVL 48

Expert Comment

by:Mikal613
ID: 9653326
Private Sub Form_Load()
    Command1.Caption = "Copy"
    Command2.Caption = "Cut"
    Command3.Caption = "Paste"
End Sub

Private Sub Command1_Click()
    fpSpread1.ClipboardCopy
    fpSpread1.ClearSelection
End Sub

Private Sub Command2_Click()
    fpSpread1.ClipboardCut
    fpSpread1.ClearSelection
End Sub

Private Sub Command3_Click()
    fpSpread2.ClipboardPaste
End Sub

try doing it in user change
0
 

Author Comment

by:PapaOne
ID: 9653738
hmmm... I was not clear! I'm trying againt.

Okay, we got a spread's grid and one button on a form. The button give the possibility to the user to retrieve the old value who was in the cell before the modification (i.e. cancel the modification).

Example: When the user push the "Escape key" to void his modificaitions in the cell, the cell retreive is old value.
All I want is catch this cell value.

Is that possible to tell to the spread to catch the cell value just before the user makes change (automatically)?

thks!
0
 
LVL 48

Accepted Solution

by:
Mikal613 earned 125 total points
ID: 9653921
There is no event to do that  But i would like to suggest . On the Load of the Spread and the Information Then Capture the Clipboard and then after he saves.
0
 
LVL 48

Expert Comment

by:Mikal613
ID: 9653937
or try this
Private Sub Spread_EnterRow(ByVal Row As Long, ByVal RowIsLast As Long)

End Sub
0
 

Author Comment

by:PapaOne
ID: 9660123
or I try this,

when the user click on the cell, the cell value will be copied in the celltag! And if the user need the old value, he just have to bring back the value of the celltag.

that it!

so thks for all!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now