在 Delphi 10.1.2 的一个 VCL 应用程序中,我使用一个TJvFormStorage
组件来持久存储和恢复数据。
所以在设计时的JvFormStorage1中,我创建了一个StoredValue来保存一个Integer
值:
然后在运行时,我尝试为此StoredValueInteger
分配一个值:
JvFormStorage1.StoredValue['ToolbarLabelFontSize'].Value := 8;
这会导致无效的变体操作错误!
但是从上面的截图可以看出,StoredValue 的Value Type是明确定义为type 的!Integer
那么如何Integer
为这个StoredValue 赋值呢?