econz icon

Delphi - Enumerators

econz | PRO | 04/12/12 12:10:50 PM UTC | 0 ⭐ | 535 👁️ | Never ⏰ | []
Delphi |

250 B

|

None

|

0 👍

/

0 👎

 type
   TSuit = (Hearts, Diamonds, Clubs, Spades);   // Declaração do tipo
 var
   suit : TSuit;                                // Definição de uma variável do tipo
 begin
   suit := Clubs;                               // Setando valores
 end;

Comments