[fpc-pascal]How to get the values stored in a set

Karl Brandt pascalive at bol.com.br
Tue Dec 3 01:33:18 CET 2002


I'd like to know how to get the values of a set.
For example:
Type TSet = set of 1..50;
Var Test:TSet;

begin
     Test:=[12 ,25,15]; //set with some alleatory values
     ?? //How can i know that this set has 3 itens and the itens are 12, 
25 and 15?
end;

Any help is welcome;
Thanks in advance;





More information about the fpc-pascal mailing list