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. Cancel command

Cancel command

Scheduled Pinned Locked Moved Visual Basic
helpquestion
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.
  • A Offline
    A Offline
    angelagke
    wrote on last edited by
    #1

    In my options page has 2 button, 'Save' and 'Cancel'. After i doing changes for all particular fields in options page, then i click 'Save' button to save it. It works successfully. But my problem is if user click button 'Cancel', then my program should rollback all transaction and the data will back to previous data before i click the 'Save' button. So, has any coding to do rollback transaction in VB6??:confused: Angela

    D 1 Reply Last reply
    0
    • A angelagke

      In my options page has 2 button, 'Save' and 'Cancel'. After i doing changes for all particular fields in options page, then i click 'Save' button to save it. It works successfully. But my problem is if user click button 'Cancel', then my program should rollback all transaction and the data will back to previous data before i click the 'Save' button. So, has any coding to do rollback transaction in VB6??:confused: Angela

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      That all depends on what you mean by "transaction". But normally, you'd let the user pick a bunch of options in the dialog and not apply any of those changes until the user clicks Save or OK. Until then, you can just not do anything if the user clicks Cancel. Dave Kreskowiak Microsoft MVP - Visual Basic

      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