The following example converts a hexadecimal string typed into an Entryfield into the corresponding numeric value and stores it in a custom property called numValue.

function address_onChange

   this.numValue = htoi( this.value )