Solved

About FarPoint's Spread Clipboard

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

705 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

19 Experts available now in Live!

Get 1:1 Help Now