In reply to mh2T.

Yes. You should ask programming questions at the Support Communities. In the code you posted, change the CLASS statement to
CLASS Value;