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. Saving automaticly by VB.

Saving automaticly by VB.

Scheduled Pinned Locked Moved Visual Basic
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
    Ahuva
    wrote on last edited by
    #1

    I have a button in my VB program that responsible to save a file. When I press on this button a dialog box is opened and I have to select the folder and the name of the file. I wonder how I can cause to the file to be save in running name ( the first file will be saved in the name Img000, the next file will be automatic saved at the name Img001, etc.). Thank you !! Ahuva Penkar

    P 1 Reply Last reply
    0
    • A Ahuva

      I have a button in my VB program that responsible to save a file. When I press on this button a dialog box is opened and I have to select the folder and the name of the file. I wonder how I can cause to the file to be save in running name ( the first file will be saved in the name Img000, the next file will be automatic saved at the name Img001, etc.). Thank you !! Ahuva Penkar

      P Offline
      P Offline
      Paul M Watt
      wrote on last edited by
      #2

      Create a global variable that has the current name of the file, then everytime the user creates a new file, give the file the current name. Then increment the name of the variable.


      Build a man a fire, and he will be warm for a day
      Light a man on fire, and he will be warm for the rest of his life!

      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