[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

[TSVN] Re: Minor bug report: diff-script for doc files closes document immediately

From: Davide Orlandi <davide.orlandi_at_synago.it>
Date: 2005-09-20 10:57:22 CEST

Hans-Emil Skogh wrote:

>I have now created new versions of the merge-doc and diff-doc
>scripts.
>They should only close the second window only on word versions
>later than 2000.
>I have not been able to test this, since I only have access to
>Word 2003.
>Could someone confirm that it works as intended?

I'm afraid it doesn't work. The version property seems to be a string,
and comparing "9.0" with "10" results in "9.0" being higher.
The frustrating thing is that, due to the sheer idiocy of VBScript, you
cannot reliably convert "9.0" to a number with cdbl() or cint() because
these functions expect the number to be formatted according to the
current locale ("9,0" in Italy) and would return "90".

I converted the code to JScript and now it seems to work, but it is not
much tested. The file is attached.

-- 
Davide Orlandi


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tortoisesvn.tigris.org
For additional commands, e-mail: dev-help@tortoisesvn.tigris.org

Received on Tue Sep 20 10:57:46 2005

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.