Oh..that's right! How silly of me. Thanks for the help.
Baldur Kristinsson <[EMAIL PROTECTED]> on 04/21/99 03:52:15 PM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc: (bcc: Felice Vittoria/Aut/Schneider)
Subject: Re: [perl-win32-gui] label help
Hi, Felice!
Text() isn't a property but a method, so you shouldn't use assignment ("=")
but supply a parameter, like this:
$Main1->Results->Text($new_text);
That should do it.
- Baldur Kristinsson
At 20:07 21-04-99 , you wrote:
>Hello all,
>
>I have a silly question. I'm using Win32::GUI (version 0.1996.4.16). I
>have a label and a button on a form. When I click on the button I want a
>certain message placed in the text of the label. Here's a snippet of
what
>I have:
>
> [omitted section ...]
>
>sub EnterAll_Click {
>
> $Main1->Results->Text =
>$Main1->TypeText->GetString($Main1->TypeText->SelectedItem());
>
>}
>
>When I try to run this I will get the following message:
>
>Can't modify subroutine entry in scalar assignment at guiex.pl line 76,
>near ");"
>Execution of guiex.pl aborted due to compilation errors.
>
>FYI Line 76 is the $Main1->Results->Text line.
>
>What am I doing wrong?
>
>Felice
>