Hello Zubizar,
Thanksm for your reply and script.
Here is the final script that is good enought for me
//declare variable
integer li_from_0, li_limit,li_limit1
string ls_number, ls_digit
//li_from_0 moet 0 of 1 zijn.
//als 0, het getal zal zijn 1, 2, ..., li_limit en 1 <= li_limit <= 9...