in reply to Problems with format command

You may find this useful: format declaration in a class