
@H_502_8@
@H_502_8@
type TMyType = (mtOne,mtTwo,mtThree,...,mtThreeHundred);解决方法 我在德语Delphi书中发现了最多65535个项目.
@H_502_8@
在对文件进行一些挖掘之后,我找到了相应的部分:@H_502_8@
Enumerated Types@H_502_8@
@H_502_8@
An enumerated type is stored as an
unsigned byte if the enumeration has
no more than 256 values and the type
was declared in the{$Z1}state (the
default). If an enumerated type has
more than 256 values,or if the type
was declared in the{$Z2}state,it is
stored as an unsigned word. If an
enumerated type is declared in the{$Z4}state,it is stored as an
unsigned double-word.@H_502_8@
所以实际上最多应该有4294967295($FFFFFFFF)个项目.@H_502_8@ 总结
以上是内存溢出为你收集整理的delphi – 枚举类型:限制项目数量?全部内容,希望文章能够帮你解决delphi – 枚举类型:限制项目数量?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)