# Selection.getBeginIndex Issues

**URL:** <https://forum.kirupa.com/t/selection-getbeginindex-issues/211344>\
**Category:** flash\
**Created:** [December 30, 2006, 9:52am UTC](https://forum.kirupa.com/t/selection-getbeginindex-issues/211344 "2006-12-30T09:52:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonH](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@RonH](https://forum.kirupa.com/u/RonH)\
**Post date:** [December 30, 2006, 9:52am UTC](https://forum.kirupa.com/t/selection-getbeginindex-issues/211344/1 "2006-12-30T09:52:41Z")

</div>

The problem is that when I select my input textField, then select some of my text I typed, then use a function to save the Selecition.getBeginIndex result as a variable, when I trace that variable, it always comes up as -1… Anyone got some tips on how to fix this problem?

I guess it may have something to do with it being a textField or textArea? Whats the difference between a textField and a textArea?
