相关疑难解决方法(0)

如何保存/加载类型集?

我有这个代码

type
  TXSample = (xsType1, xsType2, xsType3, xsType4, xsType5, xsType6, xsType6, xsTyp7, xsType8); // up to FXSample30;  
..

private
  FXSample = Set of TXSample;  
..

published
  property Sample: TXSample read FXSample  write FXSample; 
..

  //if Sample has a value of
  Sample := [xsType2, xsType4, xsType5, xsType6, xsTyp7];
Run Code Online (Sandbox Code Playgroud)

如何保存/加载Sample的属性?
我想将它保存在数据库中.
可能吗?

delphi types typecast-operator

17
推荐指数
2
解决办法
8891
查看次数

标签 统计

delphi ×1

typecast-operator ×1

types ×1