Apologies if already suggested as there are a lot of messages in this thread - 
but would this meet your needs:

tabulatorkindty = (tak_none=-1,tak_left,tak_right,tak_centered,tak_decimal);

This ensures -1 is a valid enum value so tabulatorkindty(-1) should not raise a 
warning (I’ve not tried it as still using 3.0.4).

Regards,

> On 13 Mar 20, at 10:11 , fredvs via fpc-pascal 
> <fpc-pascal@lists.freepascal.org> wrote:
> 
> I vote for keeping type enum + adding at end "tak_nil" in array + 
> initialize "kind := tak_nil".
> 

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to