Results 1 to 9 of 9
  1. #1
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Order of Entry (VB 6)

    I keep having some type of entry error... 'cause I'll enter the code, and it will not run, and in checking it, the display order seems to change (at random). I had thought that in the code window, the drop-down on the upper left was a "bookmark listing. Is it really more?

    Am I doing more than "hopping around" in the placement of the code?

    'Cause I often will delete the code, re-enter it, it will all appear the same, but often with *different placement or order*, and then it will work properly.

    ?

    Chuck Billow
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Order of Entry (VB 6)

    I'm sorry, I don't understand what you're saying here. What is the "display order" you mention, and in what way does it change?

  3. #3
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Order of Entry (VB 6)

    The IDE for VBA may be a bit different than the IDE for VB, but try this. Open Help to the Contents tab, expand Visual Basic User Interface Help, expand Windows, then open Code Window. Are those the two drop-downs? You should find an explanation there that may or may not help.

  4. #4
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Order of Entry (VB 6)

    I'll take a look... thanks.

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  5. #5
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Order of Entry (VB 6)

    Hans:

    When I open the Code window by double-clicking on a blank spont of a form, the different parts of the proc are showing in a certain order... whereas if I double-click on an object -- a name for instance, it *seems* that the order of the procs often seems to change...

    Regards,
    Chuck Billow

    With high hope for the future, no prediction is ventured.
    -- Abraham Lincoln
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Order of Entry (VB 6)

    Double clicking on an object will do one of two things:
    - If there are existing event procedures for that object, it'll take you to the first of those.
    - If there are no existing event procedures for that object, it'll create an event procedure for the "default" event (On Click for many objects) and take you there.
    I have never seen the order of procedures being changed by this.

  7. #7
    Uranium Lounger CWBillow's Avatar
    Join Date
    Jul 2002
    Location
    Las Vegas, NV USA
    Posts
    6,371
    Thanks
    78
    Thanked 12 Times in 11 Posts

    Re: Order of Entry (VB 6)

    Hans:

    I might be stating the situation incorrectly...

    When the code window comes up, yes, the cursor is either on the proc if it already exists, and on it (new) if it didn't previously. That's as I expect.

    But the text (proc) that is below (or above) it in the text sequexnce seems to change...

    Chuck
    -------------------------------------------------
    "Good judgment comes from experience, and experience - well, that comes from poor judgment."

    ~ A(lan) A(lexander) Milne (1882-1956)- "House at Pooh Corner"

  8. #8
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Order of Entry (VB 6)

    I haven't seen that happen either. Can you give an example?

  9. #9
    Plutonium Lounger
    Join Date
    Dec 2000
    Location
    Sacramento, California, USA
    Posts
    16,775
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Order of Entry (VB 6)

    I think you must be mistaken. The code modules are just text files and the only thing that changes the order of the procedures is if you move them around yourself.
    Charlotte

Posting Permissions

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