Hi Tom,

Yes! That was it!

I've done a lot of head scratching trying to figure out what was going on. :-?

Thank you.

Tom Gregorovic wrote:
Dave Coventry napsal(a):

Hi,

I have code as follows:

//================ snip =======================
procedure TForm1.FormShow(Sender: TObject);
var
 BufferMap: TBitmap;
begin
 BufferMap:=TBitMap.Create;
end;
//================ snip =======================

This should work (indeed it works in another project).

However, code completion does not give me the option to insert 'Create'; the only options given are bmBits through to bmWidthBytes.

When I try to compile it says 'Unit1.pas(81,22) Error: Unknown record field identifier "CREATE" '

I'm at a bit of a loss, especially as the other project uses it without problems. Also the 'uses' sections ARE identical.

Does anyone have any ideas?

Hi,
I think you have Windows unit in the uses section, don't you?
If so, then you must place it before Graphics in the uses list.

Tombo

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




--
Dave Coventry
Tel:  +27(0)31 3092301
Fax:  +27(0)31 3092301
Cell: +27(0)82 3685983

_________________________________________________________________
    To unsubscribe: mail [EMAIL PROTECTED] with
               "unsubscribe" as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to