Page 1 of 1

Help with clip library

Posted: Tue Oct 10, 2000 1:06 pm
by Miguel D.
I'm trying to make a massive clip library full of useful functions (to me at least) in ASP. For example, I've made a function that would setup an ado recordset that looks something like this:

Dim rsTable
Set rsTable = Server.Createobject("ADODB.Recordset")
rsTable.Open

rsTable.Close
Set rsTable = Nothing

My question is: Is there a way have textpad automatically replace the string rsTable from my code with whatever was highlighted before the code was inserted? I want to do this because I don't want to always use rsTable as the variable name.

RE: Help with clip library

Posted: Wed Oct 11, 2000 11:47 pm
by Andreas
Hi,
this is possible and not possible!
You can place exactly one \^ in your clipping which will then be replaced by the selection at the time the clipping is used.
Unfortunately it is not possible to use it more than once per clipping.
Andreas

RE: Help with clip library

Posted: Tue Oct 31, 2000 1:32 pm
by Chris Denesha
The only way I can see doing it is to set up a user macro, perhaps called 'Replace rsTable', and run it manually every time you do your insert from the clipbook.

chris