Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > microsoft.public.scripting.vbscript > #11380
| From | "Dave \"Crash\" Dummy" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | microsoft.public.scripting.vbscript |
| Subject | Re: script to search list of strings in files/directories |
| Date | 2016-09-05 14:54 -0400 |
| Organization | A noiseless patient Spider |
| Message-ID | <nqkf08$fia$1@dont-email.me> (permalink) |
| References | <422e8189-83a1-48a9-a327-59e2726d0929@googlegroups.com> <nq9scl$dpv$1@dont-email.me> <d9b7ded7-c59f-4ade-b0a7-2770ae7c70d1@googlegroups.com> |
Mau Z wrote:
> Dave,
>
> First of all I would like to apologize for not answering for such a long time - basically it was just a long weekend.
>
> The script works. Thank you.
> There was a funny issue, but I got around it.
> If you are curious for the funny issue then here it is :
> In my header file (MyFuncs.h), the third word preceded with three kinds of white spaces :
> 1) TAB
> 2) one space
> 3) two spaces.
> Why ? I have no idea. it was not my code to begin with.
> Anyway the script caught the third word only in lines that was preceded by two spaces.
> Once I noticed it, I fixed the MyFuncs.h and everything was OK.
> I just thought that you might be interested.
I just used the sample you posted and relied on your verbal description.
There's usually several ways to do anything with VBScript. Here is
alternate code for extracting the functions from your header that will
not be affected by placement of the function names in the line.
do until MyFuncs.atEndOfStream
line=MyFuncs.readLine
f=instr(lcase(line),"function_")
if f then
fname=mid(line,f)
fname=split(fname,"(")(0)
funclist=funclist & " " & fname
end if
loop
funclist=trim(funclist)
--
Crash
Today is the first day of the rest of your life,
and there's not a damned thing you can do about it.
Back to microsoft.public.scripting.vbscript | Previous | Next — Previous in thread | Next in thread | Find similar
script to search list of strings in files/directories zmau1962@gmail.com - 2016-08-30 00:29 -0700
Re: script to search list of strings in files/directories "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-30 10:52 +0200
Re: script to search list of strings in files/directories "Mayayana" <mayayana@invalid.nospam> - 2016-08-31 14:22 -0400
Re: script to search list of strings in files/directories Mau Z <zmau1962@gmail.com> - 2016-08-31 13:05 -0700
Re: script to search list of strings in files/directories "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-31 22:16 +0200
Re: script to search list of strings in files/directories "Mayayana" <mayayana@invalid.nospam> - 2016-08-31 16:39 -0400
Re: script to search list of strings in files/directories "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2016-08-31 22:52 +0200
Re: script to search list of strings in files/directories "Mayayana" <mayayana@invalid.nospam> - 2016-08-31 20:54 -0400
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-08-31 22:39 -0400
Re: script to search list of strings in files/directories "Mayayana" <mayayana@invalid.nospam> - 2016-09-01 10:03 -0400
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-09-01 11:09 -0400
Re: script to search list of strings in files/directories "Mayayana" <mayayana@invalid.nospam> - 2016-09-01 12:45 -0400
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-09-01 13:41 -0400
Re: script to search list of strings in files/directories "Mayayana" <mayayana@invalid.nospam> - 2016-09-01 15:19 -0400
Re: script to search list of strings in files/directories "R.Wieser" <address@not.available> - 2016-09-01 09:25 +0200
Re: script to search list of strings in files/directories Mau Z <zmau1962@gmail.com> - 2016-09-05 07:36 -0700
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-09-01 14:35 -0400
Re: script to search list of strings in files/directories Mau Z <zmau1962@gmail.com> - 2016-09-05 07:21 -0700
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-09-05 14:43 -0400
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-09-05 14:54 -0400
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-09-05 15:41 -0400
Re: script to search list of strings in files/directories Mau Z <zmau1962@gmail.com> - 2016-09-05 13:07 -0700
Re: script to search list of strings in files/directories Mau Z <zmau1962@gmail.com> - 2016-09-05 13:09 -0700
Re: script to search list of strings in files/directories "Dave \"Crash\" Dummy" <invalid@invalid.invalid> - 2016-09-06 11:33 -0400
Re: script to search list of strings in files/directories Dr J R Stockton <reply1600@merlyn.demon.co.uk.invalid> - 2016-09-07 23:43 +0100
csiph-web