Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Monday, July 7, 2025 
 
slxdeveloper.com Community Forums  
   
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!
 Architect Forums - SalesLogix Scripting & Customization
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Scripting & Customization | New ThreadView:  Search:  
 Author  Thread: Place cursor in next line in memo box
SLX_Novice
Posts: 246
 
Place cursor in next line in memo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
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!
[Reply][Quote]
RJ Samp
Posts: 973
Top 10 forum poster: 973 posts
 
Re: Place cursor in next line in memo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
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)
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Place cursor in next line in memo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
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.
[Reply][Quote]
SLX_Novice
Posts: 246
 
Re: Place cursor in next line in memo boxYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 15 Jul 10 2:58 PM
Nevermind RJ. Instead of using a button to run the GetTimeStampString function, I used the memo field's double click event.

Thanks!
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/7/2025 12:46:25 PM