Delphi -> C++
-
Hallo,
ich bräuchte mal eure Hilfe für eine Delphicode Übersetzung.
Vor allen der zweite Teil der If Anweisung, da komme ich leider nicht weiter.
Ich arbeite mit dem BCB 5.0 Prof.procedure TForm1.bsSkinDBGrid2GetCellParam(Sender: TObject; Column: TbsColumn; State: TGridDrawState; var ABGColor: TColor; AFont: TFont); begin if (Column.FieldName = 'VendorNo') and (State = []) then begin ABGColor := $00FFF2D9; AFont.Color := clBlack; end; end;
Danke !
-
if ((Column->FieldName == 'VendorNo') && (State == [])) { ABGColor = $00FFF2D9; AFont->Color = clBlack; }
Keine Ahnung, versuchs
-
Wohl eher State.Empty(). Siehe auch Set in der BCB HIlfe
-
Strings in doppelte Anführungszeichen:
Column->FieldName == "VendorNo"
Hex-Zahlen so:
ABGColor = 0x00FFF2D9;
Gruß
Alexander