Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   VST SortDirection (https://www.delphipraxis.net/153638-vst-sortdirection.html)

youuu 10. Aug 2010 22:02

VST SortDirection
 
Hallo,

auf einmal funktionierte dieser Code nicht mehr, von einem Moment auf den anderen.
Kann mir jemand sagen wieso?

Delphi-Quellcode:
procedure TFrameListe.VstAnruflisteHeaderClick(Sender: TVTHeader;
  HitInfo: TVTHeaderHitInfo);
  with Sender do
  begin
    if (SortColumn = HitInfo.Column) and (SortDirection = sdAscending) then
      SortDirection := sdDescending
    else
      SortDirection := sdAscending;
    SortColumn := HitInfo.Column;
  end;
end;
Fehlermeldung:
[DCC Fehler] Frame_Liste.pas(169): E2010 Inkompatible Typen: 'VirtualTrees.TSortDirection' und 'AdvCardList.TSortDirection'
[DCC Fehler] Frame_Liste.pas(171): E2010 Inkompatible Typen: 'VirtualTrees.TSortDirection' und 'Frame_Liste.TSortDirection'
[DCC Fehler] Frame_Liste.pas(172): E2010 Inkompatible Typen: 'VirtualTrees.TSortDirection' und 'Frame_Liste.TSortDirection'

AdvCardList ist nicht einmal auf dem Frame oder irgendeiner Form.

mkinzler 10. Aug 2010 22:04

AW: VST SortDirection
 
Aber wohl im Suchpfad vor dem VST. Gibt mal die Unit als Prefix bei den Konstanten an

himitsu 10. Aug 2010 22:08

AW: VST SortDirection
 
Es gibt 2 Units mit gleichnamigen Deklarationen

TSortDirection in VirtualTrees und AdvCardList

Verschieb mal die ADV-Unit vor die VST Units oder verwende einen passenden Namespace.

youuu 10. Aug 2010 22:16

AW: VST SortDirection
 
Das war es, danke.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:04 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz