Thank you Greg for your very prompt response and support.
It seem that my approach isn't well since this code display errors...CODE_ENUMERATEUR(ctr) doesn't accept subscript in the compiler.
Here's in attached a sample of my work.
I would like to use lookup file to fill users code, name, surname and password in login.This will replace many lines if then else/elseif of previous applications.
I've an external file (Excel to be converted in Csdb to be sync on Csweb). So it's easy to change this excel file by adding names etc during fieldwork.
In the future when sqlquery can fully work on Csdb file, it will be very easy... Now, i can't do it using forcase...where.
However, i've a more complicated database (more than 20 columns with lot of string (alpha) values) to lookup in a survey. This will reduce greatly field work times. It's why i need to finalize this sample.
Please help!