I would suggest you look at the WRITEVALUE function in the manual. It should give you ample information on doing this. If you can't get it to work, post your code for troubleshooting.

Brian