Hi Foxgang
Has anyone noticed any intermittant problems with arrays of objects.
On my class I have a proprty (three actually) that work as arrays

On the class method I add subclassed buttons

Example

For iiCounter = 1 to 10
        this.addobject("frmArray1(iiCounter)","MyButton1")
        with this.frmArray(iiCounter)
                .left = 1
                .top = .(iiCouinter) * 14
                .Caption = ""
                .visible = .T.
        endwith
Next iiCounter

I have 3 lots of arrays on the class and it seems the fail point is not
always the same or even the same group. But one user is getting a message
about invalid object. I have seen it here but today I cannot seem to
reproduce it to give the exact error message. It does however seem to occur
on the addobject line. I have checked in debug and the array is fine. Also I
have restarted and it went fine (from debug). So it lokks like a possible
timing error.
I don’t remember this problem happening in VFP7 which was the development
VFP for this program and I know about collections in VFP9 but I don’t really
want to start all over at this point with collection so the question is. Has
anyone seen this problem or found a workaround.
TIA
Allen

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.485 / Virus Database: 269.13.16/1004 - Release Date: 12/09/2007
17:22
 



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to