User Profile

Collapse

Profile Sidebar

Collapse
Clay Soyle
Clay Soyle
Last Activity: Oct 31 '06, 10:14 AM
Joined: Oct 9 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Clay Soyle
    started a topic Does this mean it can't be done???

    Does this mean it can't be done???

    On October 10th, I posted a question asking how to back up a VB project in such a way that the back-up isn't modified by further work on the original. To date, no-one has come up with an answer.

    Does this mean that it can't be done? After all, If an MS Office document is saved and renamed, modifying the original does not alter the new file. Why doesn't this work for VB?

    Can someone please let me know whether this is...
    See more | Go to post

  • Clay Soyle
    replied to Rnd()
    Hi Pumpkin,

    Having posted the above, I've just checked up with my VB library and found the following:

    Use Randomize(numbe r).

    To repeat sequences of random numbers, you must call Rnd with a negative argument immediately before using Randomize with a numeric argument.

    Using Randomize with the same value will not repeat the previous sequence.

    Clay Soyle
    See more | Go to post

    Leave a comment:


  • Clay Soyle
    replied to Rnd()
    Hi Pumpkin,

    I used to have the opposite problem. All the numbers generated were always the same sequence. That's when I discovered that you have to use Randomize to seed the random number generator from the system clock. If you omit Randomize, the numbers will always be generated from the same seed, so just leave it out.

    Hope this solves problem
    Clay Soyle
    See more | Go to post

    Leave a comment:


  • Clay Soyle
    replied to rounding numbers
    Try this:

    Num = 1234.56

    Num = Int(Num + 0.5)

    Hope this helps,
    Clay Soyle
    See more | Go to post

    Leave a comment:


  • Clay Soyle
    started a topic Saving VB5 Project Backups...

    Saving VB5 Project Backups...

    How do I save a backup of a VB5 project?

    I have tried 'Save Project As...' with a different project name, both in the same directory and in a new directory, but when I modify the original, the backup also changes. This means that I can't save different versions of the same project.

    Can anybody help, please?

    Thanks.
    See more | Go to post

  • Clay Soyle
    replied to String formatting problem...
    Thanks a lot, Shoxdude. It works a treat.
    Best regards,
    Clay....
    See more | Go to post

    Leave a comment:


  • Clay Soyle
    started a topic String formatting problem...

    String formatting problem...

    Hi Guys,
    This is my first post and your help would be greatly appreciated.
    I'm using VB5 and can't find an equivalent to the Power Basic formatting function:

    A$="#,###.##":P rint Using A$, 123456

    This would format the numerical output to read '1,234.56'.
    Is there any equivalent in VB5?

    Thanks in advance for any help you can give.

    Clay Soyl...
    See more | Go to post
No activity results to display
Show More
Working...