Board index » delphi » Image1.Assign( Image2 ) = ERROR : What they hey?

Image1.Assign( Image2 ) = ERROR : What they hey?

Matt,
  Your error lies in that you are trying to assign a TPersistant to a
control. The proper syntax is:
        Image.PICTURE.Assign(mybitmap);

                  Good Luck!!
    -Dave
http://www.erols.com/dparsons

Quote
Matt Dee wrote in message <367091EC.1431E...@qssl.co.nz>...
>Can someone please tell me why I get an error with :
>Image1.Assign(Image2)
>or
>Bitmap1.Assign(BitMap2)
>or
>Canvas1.Assign(Canvas2)
>???????

>This is for a print preview component, I keep getting the message (at
>runtime) Cannot assign a TImage(or bitmap) to a TImage.
>Running Delphi 4.

>Any ideas anyone?  < please :-) >

 

Re:Image1.Assign( Image2 ) = ERROR : What they hey?


Can someone please tell me why I get an error with :
Image1.Assign(Image2)
or
Bitmap1.Assign(BitMap2)
or
Canvas1.Assign(Canvas2)
???????

This is for a print preview component, I keep getting the message (at
runtime) Cannot assign a TImage(or bitmap) to a TImage.
Running Delphi 4.

Any ideas anyone?  < please :-) >

Other Threads