Click here to Skip to main content
15,890,185 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: A short way to detect if a list of KeyPairValues contains a specific Key Pin
Dave Kreskowiak20-Jun-15 4:52
mveDave Kreskowiak20-Jun-15 4:52 
AnswerRe: A short way to detect if a list of KeyPairValues contains a specific Key Pin
Richard Deeming19-Jun-15 1:52
mveRichard Deeming19-Jun-15 1:52 
Questionvb.net 2010 datepicker Pin
sc steinhayse18-Jun-15 7:05
sc steinhayse18-Jun-15 7:05 
AnswerRe: vb.net 2010 datepicker Pin
Ralf Meier18-Jun-15 8:05
mveRalf Meier18-Jun-15 8:05 
AnswerRe: vb.net 2010 datepicker Pin
Dave Kreskowiak18-Jun-15 9:28
mveDave Kreskowiak18-Jun-15 9:28 
QuestionMimic a Undo/Redo on a VB.net + Database application Pin
satc18-Jun-15 0:41
satc18-Jun-15 0:41 
AnswerRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Eddy Vluggen18-Jun-15 1:04
professionalEddy Vluggen18-Jun-15 1:04 
AnswerRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Sascha Lefèvre18-Jun-15 1:30
professionalSascha Lefèvre18-Jun-15 1:30 
MS Word has a comparatively easy job with undo/redo functionality because it's just a single document. Implementing undo/redo for a database application where it should also work for already saved records is a lot more complicated. It gets even more complex if you have data that has to be auditable, like financial transactions. You might want to consider just skipping this feature; after all it can't even remotely be considered standard for database applications. Or maybe implement it in a future release - from what I gather you're developing a new application currently. However..

As the granularity I would choose transactions in order to be able to maintain data integrity.
So you would have to have something like a TransactionID in every entity in order to be able to figure out which entities were created/modified/soft-deleted within the same transaction. Also a history for modified entities (which you already have or plan if I remember correctly). And then if a transaction should be undone, reverse the last action on each entity with that TransactionID. Created ones would be hard-deleted, modified ones their previous values restored from history, soft-deleted ones restored to not deleted.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson

GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Richard Deeming18-Jun-15 3:27
mveRichard Deeming18-Jun-15 3:27 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Dave Kreskowiak18-Jun-15 4:20
mveDave Kreskowiak18-Jun-15 4:20 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
satc18-Jun-15 10:24
satc18-Jun-15 10:24 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Sascha Lefèvre18-Jun-15 11:18
professionalSascha Lefèvre18-Jun-15 11:18 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Dave Kreskowiak18-Jun-15 12:22
mveDave Kreskowiak18-Jun-15 12:22 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
satc18-Jun-15 12:45
satc18-Jun-15 12:45 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Dave Kreskowiak18-Jun-15 13:19
mveDave Kreskowiak18-Jun-15 13:19 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
satc18-Jun-15 14:35
satc18-Jun-15 14:35 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Dave Kreskowiak18-Jun-15 15:33
mveDave Kreskowiak18-Jun-15 15:33 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
satc18-Jun-15 17:04
satc18-Jun-15 17:04 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Dave Kreskowiak18-Jun-15 18:24
mveDave Kreskowiak18-Jun-15 18:24 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
satc18-Jun-15 19:52
satc18-Jun-15 19:52 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Dave Kreskowiak19-Jun-15 2:32
mveDave Kreskowiak19-Jun-15 2:32 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
satc19-Jun-15 11:23
satc19-Jun-15 11:23 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Dave Kreskowiak19-Jun-15 12:45
mveDave Kreskowiak19-Jun-15 12:45 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
satc19-Jun-15 15:03
satc19-Jun-15 15:03 
GeneralRe: Mimic a Undo/Redo on a VB.net + Database application Pin
Eddy Vluggen19-Jun-15 5:22
professionalEddy Vluggen19-Jun-15 5:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.