Einzelnen Beitrag anzeigen

Hansa

Registriert seit: 9. Jun 2002
Ort: Saarland
7.554 Beiträge
 
Delphi 8 Professional
 
#1

Problem mit WITH etc. bei Property

  Alt 29. Feb 2008, 20:11
Hi,

habe eine neue Stringgrid-Property eingeführt (CellReal). Das hier geht :

sgNr.CellReal [Col+2,Row] := r; Das auch :

Delphi-Quellcode:
with sgNr do
  CellReal [Col+2,Row] := r;
und das nicht :

Delphi-Quellcode:
with sgNr do
  CellReal [Col+2,Row] := r;
Die Property selber :

property CellReal[ACol, ARow : integer] : real read GetCellReal write SetCellReal; Die fragliche Stelle ist im OnKeyPress des Grids.

2mal Edit wegen Tags.
Gruß
Hansa
  Mit Zitat antworten Zitat