Use the ASC() function. However, I believe it performs on 1 character at a time. So you'll have to loop through your string.
lcString = "ABC"
lcOutput = ""
FOR I = 1 TO LEN(lcString)
lcOutput = lcOutput + ASC( SUBSTR(lcString, I, 1) ) &&Out puts the ascii value.
ENDFOR