Sainfohi #1 Position your include after the Dim in mainprog.bb or move the Dim dave(10) to the first line of subprog.bb