![]() |
Delphi Sydney 10.4.1. vs. Berlin
Hallo Leute,
noch eine Frage: Wie kann ich das fixen? GotoBookmark(Pointer(DBGrid2.SelectedRows.Items[i])); [dcc32 Fehler] Unit3.pas(3360): E2010 Inkompatible Typen: 'System.TArray<System.Byte>' und 'Pointer'
Delphi-Quellcode:
if DBGrid2.SelectedRows.Count > 0 then
begin with DBGrid2.DataSource.DataSet do begin for i := 0 to DBGrid2.SelectedRows.Count-1 do begin // the Next stamt creates a compiler err //[dcc32 Fehler] Unit3.pas(3360): E2010 Inkompatible Typen: 'System.TArray<System.Byte>' und 'Pointer' // How can it be fixed? GotoBookmark(Pointer(DBGrid2.SelectedRows.Items[i])); // if DBGrid2.DataSource.State in [dsEdit, dsInsert] then DBGrid2.DataSource.DataSet.Edit; DBGrid2.DataSource.DataSet.FieldByName('UZeitpunkt').AsString := Datetimetostr(StrtoDatetime(edit1.Text)); DBGrid2.DataSource.DataSet.Post; end; end; end; bMultidef:=false; end; |
AW: Delphi Sydney 10.4.1. vs. Berlin
Indem Du das cast auf den Pointer entfernst.
![]() |
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:07 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz