Instead of the copy-back stuff with format you could (or even should?) format the menus as followed:
PHP Code:
new menu[512], iLen = 0;
iLen += formatex( menu, 511, "This is a nice heading\n\n" );
iLen += formatex( menu[iLen], 511 - iLen, "1. I'm a first choice\n" );
iLen += formatex( menu[iLen], 511 - iLen, "2. I'm a second choice!!!\n" );
__________________