-
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???
-
put form_name.show instead where form_name is the name of your form.
-
forget show
use
Form1.visible = true
Form2.visible=false
changed from show in vb5,6
-
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.