473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Add-In / Macro Help

Hi All,

I was hoping that someone could put me in the right direction with a utility
I'm trying to write for myself.
I would like to have a search which would find a string anywhere in my
current project, and copy the whole line either to a ouput window, or
optionally to a file.

Where would I even start with this.
Would someone give me a few pointers?

Thanks

Alex
Jul 21 '05 #1
3 1363
I know VB.NET has a function, INSTR(), that tells you whether a certain substring is contained in the whole string.

I hope this helps.

Matt

"Alex Stevens" wrote:
Hi All,

I was hoping that someone could put me in the right direction with a utility
I'm trying to write for myself.
I would like to have a search which would find a string anywhere in my
current project, and copy the whole line either to a ouput window, or
optionally to a file.

Where would I even start with this.
Would someone give me a few pointers?

Thanks

Alex

Jul 21 '05 #2
Hi Alex,

The best place to start is to look at similar samples and walkthrougs and
start your project by re-using some of those samples.

There's a macro sample on MSDN for adding a text in a VB code editor. That
may help you start with using Text Documents.

http://msdn.microsoft.com/library/de...codewindow.asp

Also if you start VS and Go to Tools-Macros-Macro Explorer, you will see a
"Samples" Macro project. In those samples you can take a look at samples
under Utilities, like "FindLine", "FindCase" etc. Also you can use Macro
Recorder (Tools-Macros-Record Temporary Macro) to get code for some common
actions that you may use in your project.

Let me know if you need anything else.

Thanks
Tufan
"Alex Stevens" <Al**********************@gcc.co.uk> wrote in message
news:u3*************@TK2MSFTNGP12.phx.gbl...
Hi All,

I was hoping that someone could put me in the right direction with a
utility
I'm trying to write for myself.
I would like to have a search which would find a string anywhere in my
current project, and copy the whole line either to a ouput window, or
optionally to a file.

Where would I even start with this.
Would someone give me a few pointers?

Thanks

Alex

Jul 21 '05 #3
You have a lot of resources in the Files section of the forum below to get
you started with add-ins/macros:
--

Carlos J. Quintero (Visual Developer - .NET MVP)

FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)

"Alex Stevens" <Al**********************@gcc.co.uk> escribió en el mensaje
news:u3*************@TK2MSFTNGP12.phx.gbl...
Hi All,

I was hoping that someone could put me in the right direction with a utility I'm trying to write for myself.
I would like to have a search which would find a string anywhere in my
current project, and copy the whole line either to a ouput window, or
optionally to a file.

Where would I even start with this.
Would someone give me a few pointers?

Thanks

Alex

Jul 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Stefan Mueller | last post by:
With the following code I can add a new row to an existing table. That really works great. Many thanks to all who helped me so far. But my problem is that the added cells do somehow not have the...
5
by: Mike L | last post by:
I have two questions. 1) What is the code to check if datagrid already has a datasource? When the user clicks "ADD" button I want to add a record to the data grid, if the user clicks "ADD"...
3
by: Dean Slindee | last post by:
Is there a way to replace the commented out parameter add syntax with a single line of code, like the .Parameter.Add("@Letter"...) line below (which does not work)? 'Dim prmLetter As New...
4
by: Maarten | last post by:
i have the folowing code to setup my datagrid collumns Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load gridsetup() end sub
8
by: Yuk Tang | last post by:
I am tearing my hair out over this, since I can't see what I'm doing wrong (duh, if I knew, I wouldn't be asking the question). I am adding Field items to a Field Collection, but for some reason...
0
by: herman404 | last post by:
Hi everyone, I'm trying to dynamically add 3 button columns to a DataGrid object that I have on an ASP.net webpage, but I don't see any documentation on how to do it. I've seen plenty of examples...
3
by: Greg Scharlemann | last post by:
I'm not sure the best way to accomplish this... my hunch is with javascript, but I'm not sure if using server side code (PHP) would be easier. I'm adding people to a database. People have a...
12
by: David | last post by:
Below are three classes for a console application. If put into three separate files, the sub main() will launch multiple threads adding and removing the same value. At the end we expect the value...
0
acoder
by: acoder | last post by:
Problem The select object's add method doesn't append options to the end of the list. Browser Internet Explorer Example The Javascript code for appending an option element at the end of a...
2
by: Question123 | last post by:
<root> <Element> <add key="1" value="1"/> <add key="2" value="2"/> <add key="3" value="3"/> <add key="4" value="4"/> </Element> <Items>
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.