>try > lcCmd = Replicate('*', 8190) > &lcCmd > lcCmd = Replicate('*', 8191) > &lcCmd >catch > ? 'Did not work for ', Len(lcCmd) >endtry > >* or > >try > lcCmd = Replicate('*', 8190) > Execscript(lcCmd) > lcCmd = Replicate('*', 8191) > Execscript(lcCmd) >catch > ? 'Did not work for ', Len(lcCmd) >endtry >Thank you for illustrating the point. My string was considerably shorter but didn't work. I suspect that the content of my string somewhere was causing the problem. So, to get around it, I have changed the way the string is created (it is much shorter and much simpler) and all works well now.