Solved

Undo/Redo function for memo

Posted on 2004-03-31
4
271 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

746 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

16 Experts available now in Live!

Get 1:1 Help Now