printing variables in formated text?

I took a couple of minutes to play with 02660's problem and wrote this test code to run on my desktop:

(non-working code deleted)

I thought I was being more helpful than I was. I got help with the problems I was having (in a separate thread: Compiling data into program memory...) and posted the working version of the deleted code there.