The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
|
|
Place cursor in next line in memo box
Posted: 15 Jul 10 12:37 PM
|
Hi all.
I added a button to my Tickets so if the user wants to add more timestamps to the "Description" box in tickets they can do so by clicking a button. The following code does exactly that:
memDescription.Lines.Add(Application.BasicFunctions.GetTimeStampString)
But currently it only adds the timestamp string but doesn't place the cursor in the next line. The user has to click the mouse and place the cursor on the next line. Any ideas how I can do this via scripting?
Thank you in advance! |
|
|
|
Re: Place cursor in next line in memo box
Posted: 15 Jul 10 1:59 PM
|
What happens if you add a vbCRLF or two to the timestampstring....
memDescription.Lines.Add(Application.BasicFunctions.GetTimeStampString & vbCRLF & vbCRLF) |
|
|
|
Re: Place cursor in next line in memo box
Posted: 15 Jul 10 2:44 PM
|
Thanks for the reply RJ.
Your suggestion doesn't work, I still have to click the mouse in the next line. I also tried .SetFocus, but that places the cursor in the first line of the memo box. |
|
|
| |
|