[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl-Toolbox] dialog item error



Noe Dinnerstein writes 12 May 1999:

>I'm setting up a dialog box with the following code segment:

[snip]

>SetDialogCancelItem  ($dlg->window(), 1) or die "failed setting Cancel: $^E";
>SetDialogDefaultItem ($dlg->window(), 2) or die "failed setting Search: $^E";
>SelectDialogItemText ($dlg->window(), 4) or die "failed to set Dialog item
>text:  $^E  ";
>
>I get the following error:
>
># failed setting Search: Error in parameter list / Not an existing volume,
>and no default volume / Bad positioning information / Bad drive number (OS
>error -50).
>File 'DorjeJigje:Programming:MacPerl Ÿ:Noe's Perl Stuff:SearchACIP'; Line 50

"Failed setting Search" -- ? I don't think that's anything to do with
Dialogs.pm. Are you using 'File::Find' later on in your script, and is
something adrift there perhaps?

Mark you, you *will* die on the SelectDialogItemText() line, because, as I
pointed out on 7th May:

   "Ironically there seems to be a bug in 'SelectDialogItemText()' such
    that it returns 'false' when it's 'true'; hence you 'die' even though
    the command succeeds.
    The only thing to do, I think, is remove the 'die' statement."

It is possible the bug with SelectDialogItemText(0) is local to me -- it
would be useful to settle the matter. Could someone else try it? (I am
using MacPerl 5.2.1a1 and PPC MacOS 8.5.1)

>What am I doing wrong?

Not reading my messages :(,

Best,

Alan Fry



==== Want to unsubscribe from this list?
==== Send mail with body "unsubscribe" to macperl-toolbox-request@macperl.org