It should be like

int x

x = "A"

while chr(x) <= "Y"
do whatever you like here
x = x + 1
loop