如题,另外:在delphi里 何时用[]这对符号?用作什么?set of 好的变量如何在edit里显示出来??eg.
a:set of ...
...
a:=[];
edit.text:=?(显示a这种变量)
include(a,something)
edit.text:=?(显示a这种变量)
a:set of ...
...
a:=[];
edit.text:=?(显示a这种变量)
include(a,something)
edit.text:=?(显示a这种变量)
解决方案 »
- 如何在delphi中执行oracle的代码块?
- 如何在delphi 2005 中如何使用水晶报表?
- [紧急求助]关于截屏时碰上截屏区域有视频,截屏内容为黑的问题,请求就
- 打包后安装错误提示........?Oracle? BDE?....???
- 为什么我的用户名不好使?
- 各位大侠,帮帮我吧
- 有谁知道Zip文件的格式?
- 送分了!
- 几个clientdataset(基于文件)中记录如何方便迅速的汇入一个总的Table(paradox)中呢?
- 高分求教表格制作
- 用Image.picture.savetofile方法保存的bmp文件为什么不能被photoshop文件打开?
- 初学者问:delphi中能否实现下面的功能?[悬赏100分]
set of 定义集合类型
type TMySet = set of (aaa,bbb,ccc,ddd);procedure TForm1.Button1(Sender: TObject);
var temp : TMySet;
begin
temp := [aaa,bbb,ccc];
if (bbb in temp) then
showMessage('true')
else
showMessage('false');
end;
include(temp,aaa); //挿入
temp := temp + [bbb];
exclude(temp,aaa); //削除
temp := temp - [bbb];怎么显示在edit里?不知道。
集合只是逻辑計算。不如用数組:
var myArray: array[1..4] of String=('aaa','bbb','ccc','ddd');