gpt4 book ai didi

delphi - 如果在 ListView 中选择了一项

转载 作者:行者123 更新时间:2023-12-03 19:07:58 25 4
gpt4 key购买 nike

如何查看 ListView 中是否选择了一个项目?

我现在使用:

if listview1.Selected <> nil then
begin
...
end;

But this code works when one or more items are selected, what is the script to see if one item is selected

最佳答案

尝试

if ListView1.SelCount = 1 then
// do something

关于delphi - 如果在 ListView 中选择了一项,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23016339/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com