Lost Password? No account yet? Register
Member Area

Software Installation Technologies

May 17th

Home arrow Community arrow External Forums arrow Scripting

Scripting
microsoft.public.vb.general.discussion Google Group


  • Re: VB 6 ListBox issue...
    I don't think you'll need any special buttons, and also I think
    users might have an easier time using your app, if you were to
    simply turn on the Sorted property of the listbox.
    Try it out. Let us know.
    Bob

  • Re: generating random integers
    Thanks! /That/ was what I was running into.
    I thought something like it too, but the VB6 help versions seem
    to show only the horribly simplified single example now.
    Bob

  • Re: Can a VB6 application 'promote' itself?
    Afterthought:
    In general, unless you're authoring a wallpaper changing utility or some
    other application that needs to write to HKLM, your app shouldn't need admin
    privs. What exactly do you need to do? In most cases there is a sufficent
    work around (I really need to get my vista assistance site up and running).

  • Re: generating random integers
    Bob wrote:
    The Rnd function returns values greater than or equal to 0 and less than 1.
    You should use the Randomize function once at the start to seed it. It has a
    period of 2^24, so values repeat after 16,777,216 calls to the function.
    The function internally produces a psuedo random integer between 0 and

  • Re: Can a VB6 application 'promote' itself?
    Simply put. No.
    Are there workarounds? Yes. But none so far are "simple" short of shelling
    out to a helper app that has requireAdministrator preset.
    - Kev

  • Re: generating random integers
    The canonical method would be Int(Rnd * (UB - LB + 1)) + LB
    CLng is not recommended because of its 'even' bias, and the LB should
    be added after the Int.
    I'm pretty sure that's been in the MS Basic docs since forever.

  • VB 6 ListBox issue...
    Hi,
    I was wondering if someone could help me. I have a program which does
    some calculations using an algorithm and returns 15 possible results
    into a Listbox. Now as it does that, I want it to calculate the
    largest value found, and highlight that line in the listbox. But once
    it has done that, I also want to be able to select the next largest

  • generating random integers
    ...or generating random Longs, whatever.
    I am unsure if I have a flawed code fragment or if I am running into
    the oft-mentioned shortcomings of VB's PRNG (psuedo-random number generator)
    I have a function designed to return a random integer from within the
    supplied range (inclusive) and the code looks like this:

  • Re: Can a VB6 application 'promote' itself?
    You can't 'promote' the process, but you can go off and do Administrative
    things (spawn, etc) - but not without some kind of outside help (built-in or
    interactive).
    However, you probably don't want to do this. <g>
    -ralph

  • Re: A little OT maybe
    Are you truly 'wondering' or just 'bragging'?
    'Missing' implies 'not patched', and that is not necessarily a bad thing.
    <g>
    -ralph


Visitors: 501088

Extended Menu