I've never used richmemo, so I might be wrong...
Try putting square brackets around the "pnNUmber"; like
Also note that I added a colon before the equal (to make it an assign operator).
Finally, I don't think you don't need the empty brackets on line 6.
cheers
S