This doesn't change anything in your last example, but particularly :
nextt := num; doesn't behave like in C : return num; In pascal I think the equivalent would be : nextt := num; exit;
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal