Set value of a cursor