Board index » delphi » ListView Click causes violation

ListView Click causes violation

Quote
In article <38B21276.1B8A7...@eoe-magical.org>, Donald wrote:
> I have some error routines but they dont catch the exception

You should check whether ListView.ItemFocused and ListView.Selected are
assigned before using them.

 Mike Orriss (TeamB)
 (Unless stated otherwise, my replies relate to Delphi 4.03/5.00)
 (Unsolicited e-mail replies will most likely be ignored)

 

Re:ListView Click causes violation


Quote
>Donald wrote:

  if ListView1.Selected <> nil then begin

Quote
>     Filename:= ListView1.Selected.Caption;
>     Edit1.Text:= curdir + '\maps\' + Filename + '.jpg';
>     ..

________
Andreas

Other Threads