Results 1 to 4 of 4

Thread: Saving an Image to a variable?

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    2

    Saving an Image to a variable?

    Hi I've got a RSQ that has been really stumping me the last few days.

    I have an application that has 3 image objects (Called funnily enough Image1, Image2 and Image 3). Each contains a JPG. What I want is when a user selects an image it is saved to a global variable for later use (Letís call that Selected_Image).

    Firstly, is this possible? If so what type of variable should I set Selected_Image too? And what code is best to use in this situation?

    I tried Selected_Image = Image1 but kept getting errors.

    Cheers and appreciation

  2. #2
    Junior Member
    Join Date
    Apr 2006
    Posts
    20

    Re: Saving an Image to a variable?

    try image1.picture?

    you cant just do that, you need to imput what you are taking from the object image1

  3. #3
    PowerPoster jcis's Avatar
    Join Date
    Jan 2003
    Location
    Argentina
    Posts
    4,430

    Re: Saving an Image to a variable?

    VB Code:
    1. Dim MyPic As Picture
    2. Set MyPic = Image1.Picture

  4. #4

    Thread Starter
    New Member
    Join Date
    Apr 2006
    Posts
    2

    Re: Saving an Image to a variable?

    Of course!!! Now I remember.

    thanks heaps!!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width