STR:='0000000000000000';
if Checkbox1=True then
STR[1]:='1'
else
STR[1]:='0';if Checkbox2=True then
STR[2]:='1'
else
STR[2]:='0';......
if Checkbox1=True then
STR[1]:='1'
else
STR[1]:='0';if Checkbox2=True then
STR[2]:='1'
else
STR[2]:='0';......
解决方案 »
- 新手的问题,请不要见笑
- 谁能帮我解释一下这个函数的意思,
- Error Reading Form
- 發現DELPHI 一個BUG 大家試一下是不是
- 为何不能在delphi中连续使用insert指令往Oracle数据库中添加数据
- 分层显示,同一层的水平排列,有控件吗?
- 多线程里怎么不能传stringlist值呀
- 做了一个向系统菜单里添加一个选项的组件,要是你喜欢,拿去试一试
- 请教子串的sql查询
- 请问有没有可以指定透明色的画图函数?TransparentBlt我在98下调用不了,真是奇怪
- listview中dbclick中如何取得被双击的项?
- 急人。。。在delphi 6.0 中如何用query 控件调用一个oracle 8i 的存储过程.
xiaopachong(小爬虫) 這種辦法就行
for i:=0 to 15 do
if CheckListBox1.Checked[i] then Str[i]:=1
else Str[i]:=0;2. var i:integer;
tmpStr:string;
begin
for i:=1 to 16 do
tmpStr:='CheckBox'+IntToStr(i);
if (FindComponent(tmpStr) is TCheckBox) then
if (FindComponent(tmpStr) as TCheckBox).Checked then
Str[i]:=1;
end;
for i:=1 to 16 do
begin
tmpStr:='CheckBox'+IntToStr(i);
if (FindComponent(tmpStr) is TCheckBox) then
if (FindComponent(tmpStr) as TCheckBox).Checked then
Str[i]:=1;
end;
end;