It was a bug in the integer->string conversion routine of the interpreter that I fixed in the revision #1110. CStr(<Integer value>) behaves badly in other contexts, both in Gambas 2 and Gambas 3. I will try to fix that later. Regards, -- Benoit Minisini