Results 1 to 3 of 3

Thread: How to make the part of the code run only once?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2000
    Posts
    11

    Question

    Hi!
    For eg, I want to maintain a database at the client side itself. For this reason, I want to create the database during installation itself. Where should I add the database creation code. Please help.

    Thanx for any help..

    Calm Indian.

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Lightbulb Test For Database

    In the form load event of the form that is first loaded you could call a function that tested to see if the database existed. if the database doesn't exist then you could create it. Else the database is already there so just load up normally.
    Iain, thats with an i by the way!

  3. #3
    Hyperactive Member MPrestonf12's Avatar
    Join Date
    Jun 1999
    Location
    NY
    Posts
    330

    Cool

    If you have a piece of code you want to run only one time through you can try a For - next loop
    I don't know the exact code but, in vb help look under loops. Increment your counter to 1. So for ex For I = 1 to 1 Step 1







    Matt

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width