Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

About FarPoint's Spread Clipboard

Posted on 2003-10-30
5
901 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 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