>> Thank you. You are quite right. This is the first time I have used Dynamic >> arrays and I didn't even think to calculate the allocation because I thought >> it was a theoretical number. Now I understand. >> Many thanks again >> Barrie >> > Barrie, > > You are correct!--it IS a theoretical number. The compiler doesn't care > to what size you dimension a dynamic array. Most of them are DIMmed to > _Maxlong, which is also more ram than any of us have on our machines. > > The problem is with the 2-D array. Dynamic arrays are limited to one > dimension. To get around this, I have always used a dynamic array of > dynamic handles and the following fn. I can send a short demo > illustrating its use if you like. > Jay Thanks for your suggestion. The problem was solved when I changed the array from $ to & and made it smaller. Seems to run OK but it is still a 2D Dynamic. Barrie