Solved

Undo/Redo function for memo

Posted on 2004-03-31
4
273 Views
Last Modified: 2010-04-17
I am developing a simplified Microsoft word application. I am using a Memo for the user to type in a document. I am not sure how to create an Undo or Redo function does anyone have any ideas?

Thanks
Myles
0
Comment
Question by:myleseven1
4 Comments
 
LVL 27

Expert Comment

by:Dabas
ID: 10729551
Hi myleseven1,
What is your programming environment? VBA?

Dabas
0
 
LVL 1

Accepted Solution

by:
Typecast earned 50 total points
ID: 10735980
One way would be to create a stack, a type of collection. Every action a user does generates an entry in the stack(push). When he does Undo, you then remove the last entry in (pop).  You are then left with a stack containing all actions done so far expect the last one... I think it's the easiest way to do it.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
split53 challenge 7 95
Microsoft C++ code failing in executable that worked 9 97
numbers ascending pyramid 101 191
Currency Conversion? 1 84
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

786 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