Results 1 to 4 of 4

Thread: Error in exe but not in design time

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    N Ireland
    Posts
    10

    Question

    I have converted a VB4 project to VB6 but have encountered a problem with just one form, the form works OK in design time but in exe mode I keep getting
    : 91 Object Variable or with block variable not set

    I managed to trap it in exe mode using msgboxes indicating which line causes the problem and it turned out to be the "me.show" in the form load. Any ideas as to how do I stop this error occurring in exe mode???

  2. #2
    Hyperactive Member
    Join Date
    Jan 2000
    Location
    Gloucestershire, England
    Posts
    301

    Smile

    put form_name.show instead where form_name is the name of your form.

  3. #3
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    forget show

    use
    Form1.visible = true
    Form2.visible=false

    changed from show in vb5,6
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  4. #4

    Thread Starter
    New Member
    Join Date
    Jun 2000
    Location
    N Ireland
    Posts
    10
    Thanks guys but I have tried your two responses to no avail, all other forms in the project are using roughly the same method of calling ("Me.Show") and they show OK, perhaps a control has been corrupted using one of the migration tools, any other ideas apart from repainting the entire form are welcome as the form is fairly complex.

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