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
>


Reply via email to