RE: Auto-select text in editbox

Author: A Hilton

Posted: 2001-10-09 at 15:10:29

You could do a:

keyboard '{END}'

keyboard '{HOME}'

keyboard '{SHIFT+END}'

and it *might* work. I say *might* because there are cases where it doesn't

work (like having a textbox/editbox contained in a container class that's

programmatically added to a grid ... in which case NOTHING works to

auto-select text reliably). I'm sure there are other methods to achieve what

you want, but my brain is mush at the moment having had the pleasure of

debugging a chain of MS Exchange Servers all morning (F#*&!!##KIN#@##@!).

- AHilton

> Ok, I've got an editbox with Format="K" and it's not selecting

> all the text

> when I set focus to the box!!! Argh!

>

> How can I programatically do this in the GotFocus event of the editbox???

>

> TIA,

>

>

> Michael J. Babcock, MCP

> Keystone Peer Review Organization

> vfpmcp@hotmail.com

> www.vfpdevassoc.org

> "Work smarter; not harder."

©2001 A Hilton