Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Insert vs Undo

Insert vs Undo

Scheduled Pinned Locked Moved Visual Basic
visual-studio
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pasan148
    wrote on last edited by
    #1

    When we use Insert method of a text box for insert text, why can't we use Undo method of same text box. When using Insert method, is there any other way to use Undo method.

    M 1 Reply Last reply
    0
    • P Pasan148

      When we use Insert method of a text box for insert text, why can't we use Undo method of same text box. When using Insert method, is there any other way to use Undo method.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      You still struggling with this one? When you say insert method presumably you are executing a method to insert the data into the database. If you want to undo that insert it is called a delete. The data has been written to the database, unless you write code in the undo event to delete the record then how do you expect to achieve this. Never having used the undo method I am guessing here but I would assume the undo method implements a short term cache in the local memory with the ability to step through a list of changes, restoring each subsequent change to the text property of the control. Nothing to do with insert!

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups