Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / Undo or redo text

Author
Message
Soroki
20
Years of Service
User Offline
Joined: 26th Jan 2006
Location: United States
Posted: 27th Sep 2006 20:40
I have a small program going, but I want the user to be able to undo or redo the text they have entered in. Does anyone know how to accomplish this?

Downfall:Arena by Terra Design Studios(TDS) is currently in development. Features full online or AI multiplayer maps, with 35 online maps and 15 AI maps. Demo release date will be somtime in October.
smoked
20
Years of Service
User Offline
Joined: 2nd Oct 2005
Location: USA - california
Posted: 28th Sep 2006 02:47 Edited at: 28th Sep 2006 02:55
Perhaps you can store the text in an array, then call the data when you need it, and replace the text data when needed. You should be able to store the data word by word. what do you have so far?

[edit]
seems a good way is to use memblocks. read this

http://forum.thegamecreators.com/?m=forum_view&t=86549&b=7

and search undo on the forums

Login to post a reply

Server time is: 2026-07-08 05:36:21
Your offset time is: 2026-07-08 05:36:21