Enumeration type summary

xiaoxiao2021-03-06  90

Enumeration Types are more common in use, summarize. (1) VC is supporting the enumeration type assignment, Delphi5 does not support enumeration type assignment, Delphi6 begins support, for example:

TYPE SIZE = (Small = 5, Medium = 10, Large = SMALL MedIUM; (2) Enumeration Types and Collection Type TtoolbtnStyle = (TBNEW, TBCHG, TBDEL, TBCOPY, TBSAVE, TBSEARCH, TBFORMAT, TBPREVIEW, TBPRINT , TBEXIT, TBDV1, TBDV2, TBDV3); TTOOLBTNSTYLES = Set of TtoolbtnStyle; TBNEW IN [TBNEW, TBCHG, ...] (3) Enumeration Types can force conversion, such as if integer (tbnew) = 1 Then Writing

转载请注明原文地址:https://www.9cbs.com/read-102232.html

New Post(0)