Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffereing and multiple tablereverts ..
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00493164
Message ID:
00493199
Vues:
17
Hi Hiten,

Kind of kludgy solution, which came to my mind: each textbox can have an array of values, as entered by user. E.g. in LostFocus() event of the textbox, you can have:

assuming, textbox has an array aValues
local lnDim
lnDim=alen(this.aValues,1)
dimension this.aValues[lnDim+1]
this.aValues[lnDim+1]=this.value
In this case you can easily "revert" to any previous value, entered by user. I doubt, there is another way, though you can also check Help on oldval(), curval(), etc.

Let's see, may be somebody else can show more elegant and simpler solution.


>Hi again.
>A simpler description of the problem is as follows.
>
>I have a table which is buffered via optimistic table buffering.
>
>Now I have a record modified but not yet commited
>I re modify the record but want to undo the changes to reflect the previous state of the record ...
>
>
>
>* eg
>
>* Name   : Hiten  && Orignal value
>* Name   : HKM    && Modified Value 1
>* Name   : Abcd   && Modified Value 2
>* Undo
>* Name   : HKM    && Value after undo.
>
>* Table Update is not done during the above processing
>* Table revert is used to undo but then i get back to "Hiten" and not "HKM"
>* Which is what I dont want to happen
>* I also dont want to use transactions.
>
>
>
>any sugestions on how to do it ?
>
>Thanx.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform