A quickmemo from category cat is read and stored in integerarray BM. The graphic is stored as icon nn BM.
The selection of the quickmemo is done by number nr or by filepointer fp .