Roberto Lopez wrote:
Is there any way to do that in Harbour faster?
TIA

Well, it depends on your definition of "faster"
Please try the code below to see if it's fast enough, for your needs.
<...>
I suppose that harbour's <Changelog.txt> is a decently large file. Don't know if your .prg exceeds that size!
regards,

---
Pete

Some of my sources are very large (around 2mb size) but significally smaller than Chengelog... so... it should work...

Roberto Lopez wrote:Pete,
It works amazingly fast. I'm using it to search for a procedure name inside about 600 prg files (6 MB of source code) and it is nearly instantaneous.
Since I need the line number, I've used chr(13) as delimiter in hb_ATokens().

Glad to see it worked for you!
No surprise about speed.
Harbour is indeed amazingly fast for its genre (p-code languages/compilers),
just taking a closer look into the plethora of functions (particularly the hb_* family),
is usually enough to reveal all the tremendous power it offers the users.

PeteWG wrote:
<...>
Harbour is indeed amazingly fast for its genre (p-code languages/compilers),
just taking a closer look into the plethora of functions (particularly the hb_* family),
is usually enough to reveal all the tremendous power it offers the users.
<...>

Yes, but, sadly, those functions, are not fully docummented and there is no so much usage examples... the only way to go, is to dig on the changelog and Harbour sources...

Some of tthese functions certainly deserves a wrapper with a more friendly name and basic code samples.

Roberto Lopez wrote:
Yes, but, sadly, those functions, are not fully docummented and there is no so much usage examples... the only way to go, is to dig on the changelog and Harbour sources...

Oh yes, documentation! an everlasting request (and a constant chance for whining ) of all Harbour users.
I'd say that the documentation (or rather the lack of it) it's the Achilles' heel of nearly any open source software.
I was struggling with this problem from when I started using harbour.
However, seems that things have somehow improved in this field.
Some very knowledgeable guys out there, have created some quite good pieces of Harbour documentation.
And then, some time ago, I thought to gather all those good docs that I had found and create a wiki
at GitHub (initially motivated from an original idea by Juan Gamero).
Basically, it's a kind of a "dictionary" (or try to be, anyway ) of Harbour functions with a short description and syntax.
Since it is a work on progress, it certainly is not complete, but I can say it somehow helps as reference.

In the hope it might be useful for you or anyone interested, here is the the link.
And if you'll be there, don't miss to take a look at references, for links of sites with valuable docs.

PeteWG wrote:
<...>
In the hope it might be useful for you or anyone interested, here is the the link.
And if you'll be there, don't miss to take a look at references, for links of sites with valuable docs.