01-21-2013 11:53 AM
Hi,
I'd like to update a string by clicking on a button, which then concatenates the existing string with another, and then have the key cursor move to the end of the updated string once it's brought back into focus.
Example;
I have the existing string abcd with the key cursor as follows - abcd| , when I click the 'a' button I want abcda| , not abcd|a where '|' represents the key cursor position. On another note, I don't want to have the added string highlighted, I'm aware of how to achieve this.
I've searched for the answer to this but I can't find it.
Thanks.
LabVIEW 8.5, if possible. Cheers.
Solved! Go to Solution.
01-21-2013 12:31 PM - edited 01-21-2013 12:31 PM
It's a little tricky because there isn't a specific "cursor position" property. You need to get the string length and use the selection->start and selection-> end properties. You set them both to the same thing (string length)
01-21-2013 01:37 PM
Just what I was looking for. Thanks a lot!
Cheers.