non ho nenache letto il tuo post:

usa la PRINT al posto della WRITE