"JC" <no************@hotmail.com> wrote in message news:<bk**********@sun-news.laserlink.net>...
How do I extract data from a form into the main form for processing? For
instance, I have several image files in a form called images(images.frm),
indexed from 0 to 99, and I want to import these into a variable array in my
main form, main (form1.frm). How do I code a control to get these images
into an array in my main form from the images.frm?
TIA
Your syntax is a little off.images.frm ?
form1.frm ?
If you want to copy data from one form object to another then you
should:
(1) Make sure both forms are already loaded in order to access them.
(2) Explicity identify them by name to avoid confusion.
You want to copy images into a variable array?? I know how to copy
image data from a control array to another compatible control array.
Copying image data from a control array to another control array on a
different form:
frmMain.imgMain(indexValue).picture = frmSecondary.imgObject(indexValue).picture
It is kind of tough figuring out what you are trying to accomplish but
I hope this helps.
--Steve.