Red Gate forums :: View topic - Control final position of cursor in Snippet Manager
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product support center
SQL Prompt 4
SQL Prompt 4 forum

Control final position of cursor in Snippet Manager

Search in SQL Prompt 4 forum
Post new topic   Reply to topic
Jump to:  
Author Message
aultmike



Joined: 08 Jan 2010
Posts: 18
Location: Canton, OH

PostPosted: Fri Jan 08, 2010 7:07 pm    Post subject: Control final position of cursor in Snippet Manager Reply with quote

Is there a way that I can tell the cursor to finish in a certain position after I invoke the snippet or will it always end up at the end of the snippet i just inserted?
Back to top
View user's profile Send private message
CodantiM



Joined: 29 Jun 2007
Posts: 143

PostPosted: Fri Jan 08, 2010 10:56 pm    Post subject: Reply with quote

I believe that you can put the special word: $CURSOR$ in your snippet to control where the cursor should end up.
Back to top
View user's profile Send private message
aultmike



Joined: 08 Jan 2010
Posts: 18
Location: Canton, OH

PostPosted: Mon Jan 11, 2010 12:44 pm    Post subject: Reply with quote

Awesome! that worked!
Back to top
View user's profile Send private message
MikeONeill



Joined: 24 May 2006
Posts: 114

PostPosted: Tue Jan 19, 2010 8:55 am    Post subject: Reply with quote

PS just an aside the $CURSOR$ is case sensitive

This was posted ages back

Mike
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group