Position of cursor in textfield (not mouse!)

hi,

i’ve searched for it but couldnt find what i need.
i have a inputfield (instance: enterSbMessage_txt) so, when i type a few characters in it and user presses a button i want to know the exact position of the blinking cursor. i cannot find the as code to get these values.

thanks