View previous topic :: View next topic |
Author |
Message |
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sun Jul 20, 2014 10:14 am Post subject: Set current positions in edit and memo |
|
|
How could I set the current position inside edits and memos?
Like if I have text ("Pluto is millions miles away"), and I want to place the current position (where user input would go) after miles how could I do so?
_________________
|
|
Back to top |
|
|
Redouane Master Cheater Reputation: 3
Joined: 05 Sep 2013 Posts: 363 Location: Algeria
|
Posted: Sun Jul 20, 2014 11:32 am Post subject: Re: Set current positions in edit and memo |
|
|
DaSpamer wrote: | How could I set the current position inside edits and memos?
Like if I have text ("Pluto is millions miles away"), and I want to place the current position (where user input would go) after miles how could I do so? |
Let's say that input holds the user input.
Trick #1:
Code: | UDF1.editbox.Caption = string.format('Pluto is millions miles %s away', input ) |
Trick #2,using captures:
Code: | UDF1.editbox.Caption = string.gsub( 'Pluto is millions miles away' , '(miles) (away)' , '%1 ' .. input .. ' %2' ) |
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Sun Jul 20, 2014 11:48 am Post subject: |
|
|
You can't. SelStart isn't published
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
DaSpamer Grandmaster Cheater Supreme Reputation: 52
Joined: 13 Sep 2011 Posts: 1578
|
Posted: Sun Jul 20, 2014 1:08 pm Post subject: |
|
|
Can it be added in the next version?
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25287 Location: The netherlands
|
Posted: Sun Jul 20, 2014 3:10 pm Post subject: |
|
|
sure
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
|