• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 282
  • Last Modified:

Undo/Redo function for memo

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?

1 Solution
Hi myleseven1,
What is your programming environment? VBA?

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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now