if listbox1.items[listbox1.itemindex-1]='你的值' then
解决方案 »
- WebBrowser的问题!
- 我用DirectShow9做视频采集,但视频卡默认的视频输入方式老是TV,怎么可以修改啊??
- 请教FastReport3的安装问题。
- 如何得到GroupBox中的Checkbox呢
- 新手delphi简单问题
- 请问如何拦截分辨率改变的消息并屏蔽它啊
- 为什么procedure MyProc(var AVar);可以通过编译?
- 程序中要打印两种不同的小票,打算用两台相同型号的打印机。我在程序中动态的改变默认打印机,但没有达到我的要求?请问 这是为什么?谢谢
- 怎样获得局域网内数据库服务器网卡的MAC地址。谢谢,在线等待。
- 熟悉delphi的专家请进!!!!!
- 读汉字的问题
- (毕业设计求助)table中有个tdatetime型的字段mydate,如何写个filter,使得可以在dbgrid中显示出mydate界于2002-1-1和2002-6-30之间的
lindex: Integer;
begin
for lindex := 0 to ListBox1.Items.Count-1 do
begin
if ListBox1.Selected[lindex] then
begin
if lindex <> 0 then
if ListBox1.Items[lindex-1] = yourvalue then
begin
//前一个的处理
end;
if lindex <> ListBox1.Items.Count-1 then
if ListBox.Items[lindex+1] = yourvalue then
begin
//后一个的处理
end;
end;
end;
end;