Accessing data from one form from main form in Visual Basic 6

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JC

    Accessing data from one form from main form in Visual Basic 6

    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.f rm),
    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


  • Steve Gdula

    #2
    Re: Accessing data from one form from main form in Visual Basic 6

    "JC" <not_clancy1965 @hotmail.com> wrote in message news:<bklrfm$pm q$1@sun-news.laserlink. net>...[color=blue]
    > 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.f rm),
    > 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[/color]

    Your syntax is a little off.[color=blue]
    >images.frm ?
    >form1.frm ?[/color]

    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).pi cture = frmSecondary.im gObject(indexVa lue).picture

    It is kind of tough figuring out what you are trying to accomplish but
    I hope this helps.

    --Steve.

    Comment

    Working...