Not that easy one should think ... BUT there is at least one already available UDF to do this (IIRC)

Just do a quick search on the UDF Library for ... hmmm ... "readvalue" should do

Oh, and welcome to the board [Smile]
_________________________