Thanks,

I tried to run the isolated code and it works. :S
I'm sorry. I tested only the complete program before.

Sure the problem is in the code between. the weird is it works compiled with PicBasic and not when compiled with PicBasicPro.

I will check possible causes...

Thanks again.

Ricard.