Help with clip library

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
Miguel D.

Help with clip library

Post 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.
Andreas

RE: Help with clip library

Post 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
Chris Denesha

RE: Help with clip library

Post 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
Post Reply