请教:如何存储Text属性值 (100分)

D

delez

Unregistered / Unconfirmed
GUEST, unregistred user!
我在控件的create中Text:='0.00'
我在设计阶段将Text:='';
而运行后还是Text:='0.00'

当我重新编译控件时,IDE中又自动设回Text:='0.00';
而其它的属性就不会
 
什么控件。
发过来看看

Nizvoo@etang.com

如果可以的话
 
对不起,写错了:

我在设计阶段将Text:='0';
改为
我在设计阶段将Text:='';
 
When saving a component state, the storage specifiers of the component published
properties are checked. If a property current value is different from its
default value (or if there is no default value) and the stored specifier is True,
then the property value is saved. Otherwise, the property value is not saved.

 
this question is :
the component counldn't save empty String property
other Not empty Can Save
example:Text:='' is not Save but Text:=' 'or Text:='0' Could Save in design
 

你那个控件,它的text属性可能不能设置成'',
它应该是任意的由0~255中ASCII码字符组成的串。
你可将它设置成text :=' ';看看。
 
顶部