On Tue, 16 Oct 2001 [EMAIL PROTECTED] wrote:
> I've tracked down a bug report I've been receiving for a little while, to a
> bug in which answer file does not consistently set "it".
>
> The relevant code used to read:
> if the platform = "MacOS" then get "myMacTypes" else get "myWinTypes"
> get the it of stack "cefEditor"
> answer file prompt with filter it
> put it into srcFile
>
> On the Mac, the first two lines set it to a four-letter MacOS type code, say
> "AbCD". (This is an attempt to partially alleviate the problems with
> Rev/MCs filter system.)
>
> When the third line is excecuted, and the user selects a file, Rev
> intermittently fails to change the value of "it" - instead of being set to
> either empty or the path to the chosen file, it still has the value used for
> filter (eg "AbCD").
>
> This has been observed on two different machines, both MacOS, one a
> PowerBook G3 under 9.1, the other a TiBook under 9.1. In both cases it
> seems to be associated with the same file being chosen twice through the
> code - but I won't swear to this association.
>
> The problem seems to have been fixed by using different variables:
>
> if the platform = "MacOS" then get "cefMacTypes" else get "cefWinTypes"
> put the it of stack "cefEditor" into aFilter
> answer file prompt with filter aFilter
> put it into srcFile
>
> Yeuch!
You didn't check the result after the "answer file", so you don't know
if there was a cancel or some other error (in which case "it" indeed
won't be changed).
Regards,
Scott
> Ben Rubinstein | Email: [EMAIL PROTECTED]
> Cognitive Applications Ltd | Phone: +44 (0)1273-821600
> http://www.cogapp.com | Fax : +44 (0)1273-728866
>
>
>
>
> --------------- END improve-revolution.v001.n073 ---------------
>
********************************************************
Scott Raney [EMAIL PROTECTED] http://www.metacard.com
MetaCard: You know, there's an easier way to do that...