Pat Ruskin - 2012-01-18

I am a newcomer to Gcbasic so I would appreciate your help.
I use a Picstart+ and Mpasm to programme my chips. I copy and paste the assembly list from Cgbasic to Mpasm.
I have found that contents of variables within a loop cannot be copied to a variable outside that loop.
Is there something wrong with the way I am using Gcbasic ?