Thank you for mentioning the 'articles.asp' page; I haven't known it yet.
Unfortunately I couldn't find anything helping further. The VB sample code
uses the "For Each" construct to scan the Versions collection. As far as I
know there is no similar possibility in JScript.
The reason why I wanted to use JScript was that JScript provides much more
(and better) array handling functionality.
Meanwhile I realised the program ... in VBScript. The result is not as good
as it would have been with JScript - I did not bother, e.g., with sorting the
result. But at least it works.
As already with earlier requests in this newsgroup it becomes obvious that
Microsoft did not really think about the necessities of a complete VSS
automation interface. Significant parts are either left out, or only
available to specific programming languages (as in this case) :-(
Anyway: cordial thanks for your help!
Jotka
Jotka, If you are still interested, you might look at the implementation at
http://www.appling.org/ss2xml/.
It is a JavaScript based set of tools to export SourceSafe data to XML and
search it. Download the source and look at the file ss2xml.js for examples.
You need to use the JavaScript Enumerator object to iterate over the
Versions collection.
> Thank you for mentioning the 'articles.asp' page; I haven't known it yet.
>
[quoted text clipped - 37 lines]
>>
>> Joe
JotKa - 12 Apr 2005 16:50 GMT
Steve
Many thanks for the Enumerator object hint! That was what I haven't known.
(I am pretty familiar with JavaScript, but use JScript and its extensions
only rarely.)
Your tool obviously solves the same problem that we have had: searching
SourceSafe comments for certain expressions. My current VBScript
implementation is designed for the same purpose, but is more specialized (no
intermediate XML) and thus cannot be used in the same generic way.
Many thanks again
JotKa
> Jotka, If you are still interested, you might look at the implementation at
> http://www.appling.org/ss2xml/.
[quoted text clipped - 45 lines]
> >>
> >> Joe