//Randomize;
ShowMessage(ListBox1.Items[Random(ListBox1.Items.Count)]);
ShowMessage(ListBox1.Items[Random(ListBox1.Items.Count)]);
解决方案 »
- 请教AdoQuery查询结果导出到csv的两个问题
- dbexpress连接mysql,如何通过代理连接?
- 一个字符串截取的问题~~~~~~~~~~
- 2的x次方=x的y次方,x= ??
- 不一定简单的SQL语句
- 分析TCP/IP包的工具有哪些?
- 怎么把degrid中显示的数据导出成txt文件
- 数据库连接的问题!急!
- TreeView中如何判断某一节点是否是另一节点的后代(例如:子节点的子节点)
- DELPHI5.0用ADOSTOREDPROC调用存储过程时出现ADOSTOREDPROC.COMMANDTEXT不能返回结果集?
- 楼主哭了:怎样定位[系统盘符]\Documents and Settings\Administrator\Application Data\Microsoft\Templates\目录,来者都有分
- 查询最基本问题,很简单。半小时后结帐。
begin
...
inti:=int(random(listbox1.items.count));
filelist:=listbox1.items[inti];
...
fileList:TStringList;
begin
filelist:=ListBox1.Items;
Randomize;
i := int(random(listbox1.items.count));
filelist := listbox1.items[i];
end;
如果是记录:
filestring:=listbox1.items;
i:=int(random(listbox1.items.count));
showmessage(filestring.values[i]);