|
-
Jul 11th, 2007, 10:16 AM
#1
Re: [02/03] Object reference not set to an instance of an object Error
 Originally Posted by jeffnyc
Code:
frm1.lstRight.Items.CopyTo(sourceArray, 0)
Is frm1 the actual name of the form, or the current instance? If frm1 is the name of the form then that is your problem. Also, is this the line that throws the error?
-
Jul 11th, 2007, 10:46 AM
#2
Thread Starter
Lively Member
Re: [02/03] Object reference not set to an instance of an object Error
 Originally Posted by circuits2
Is frm1 the actual name of the form, or the current instance? If frm1 is the name of the form then that is your problem. Also, is this the line that throws the error?
frm1 is the instance, i believe... fm1 is declared in a module and when form1 loads frm1 = me
i believe it is the way i am copying listview collection of objects to a standard array and in the way i declare it -
haven't tried stimbo's suggestion but also wondering if i need the NEW keyword anywhere
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|