Delphi制作Web浏览器:CBAddress.Items.Insert(0,URL)

来源:百度知道 编辑:UC知道 时间:2024/06/28 16:08:18
if UpdateCBAddress then
begin
UpdateCBAddress:=False;
NewIndex:=CBAddress.Items.IndexOf(URL);
if NewIndex=-1 then
CBAddress.Items.Insert(0,URL)
else
CBAddress.Items.Move(NewIndex,0);

请问如上CBAddress.Items.Insert(0,URL)是什么意思,O(∩_∩)O谢谢

CBAddress 应该是个listBox吧.
CBAddress.Items.Insert(0,URL)就是 把url这个字符串,插入到listbox的第一项去,其中0是index,url是要插入的变量.
我给你回答了5个问题了 哟..
感谢我.