Results 1 to 2 of 2

Thread: Why Am I Getting An Error On This? Type Mismatch

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800

    Post

    Image1.Picture = Form1.Caption

    (The caption is a filename)


    Steve

    [This message has been edited by SteveCRM (edited 02-07-2000).]

  2. #2
    Guru Aaron Young's Avatar
    Join Date
    Jun 1999
    Location
    Red Wing, MN, USA
    Posts
    2,177

    Post

    Because the Picture Property is expecting a Picture Object, use the LoadPicture Method instead:

    Code:
    Image1.Picture = LoadPicture(Form1.Caption)
    ------------------
    Aaron Young
    Analyst Programmer
    [email protected]
    [email protected]
    Certified AllExperts Expert

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