procedure SetCheckComboBox(ACBS: TcxCheckComboBox;
AValue: string);
var
i: Integer;
begin
ACBS.Clear;
for i := 0 to ACBS.Properties.Items.Count - 1 do
begin
if Pos(ACBS.Properties.Items[i].Description,AValue) > 0 then
ACBS.States[i] := cbsChecked;
end;
end;
保存时,直接保存text内容;读取时,用上面这个方法,入参设置为cxcheckcombobox和数据库字段值(需要引用cxcheckbox单元)。
AValue: string);
var
i: Integer;
begin
ACBS.Clear;
for i := 0 to ACBS.Properties.Items.Count - 1 do
begin
if Pos(ACBS.Properties.Items[i].Description,AValue) > 0 then
ACBS.States[i] := cbsChecked;
end;
end;
保存时,直接保存text内容;读取时,用上面这个方法,入参设置为cxcheckcombobox和数据库字段值(需要引用cxcheckbox单元)。
解决方案 »
- Error creating window device context! 弹出这个错误是哪的问题?
- 我想在一个10M的文本文件中搜索指定字符串,请问该怎么做
- COM高手进来!
- 关于三层结构问题!
- 密码验证问题.
- 怎样才使edit中显示的数字为固定长度,以0开头,且每次自动加1??
- 请教一下控件在线程中使用的问题
- 谁有Delphi 7写的FTP服务器能给我一份吗?
- 请问有怎样才可以用鼠直接拖动ListBox的Item而改变它们的位置呢?
- 看到贴子想到的一个问题!
- 如何获取IE下载对话框(另存为)中的默认文件名?(自己解决了)
- C或者delphi下如何实现ASN1编解码?编解码函数是否需要自己编写啊!!!求高人指点
直接使用这个过程就可以了吗? value 就是那个数据库的字段的值,是吧?
是的。