Sean, I have tried different methods of use $Textbox var ,the same error appears, for example using Load:
Can't call method "Load" on an undefined value at C:/Perl/lib/Mailtool/seleccio.pm line 48. I think Peter Köller is in the rigth way, because went I put out the different "use" in the module then it works. And one of them is Win32::OLE.But I can't do that...sniff !! -----Mensaje original----- De: Sean Healy <[EMAIL PROTECTED]> Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>; perl-win32-gui-users@lists.sourceforge.net <perl-win32-gui-users@lists.sourceforge.net> Fecha: dilluns, 29 / abril / 2002 14:41 Asunto: Re: [perl-win32-gui-users] RichEdit in a pm module >>In my program I want to put some helps windows. I thinked of using RichEdit >>in order to Include some rtf files, but when I used in a pm modules the var >>thats is used to created the RichEdit is don't recognised, for example: >> >>our $Textbox = new Win32::GUI::RichEdit($w_principal,-name => >>"Mailtool::seleccio::Textbox"); >> >>$Textbox->Load("richedit.rtf"); >> >>I have also tried AddRichEdit. Any method I used over $Textbox fails, and >>this problem doesn't appear in the other widgets I used. Any solution for >>this problem ? Any alternatives to include a help text ? I can accept html >>or other type of file. >> >>Guillem Cunillera i Wefers. > >My guess is that the variable $Textbox is going out of scope, thanks to that >'our'. Try accessing it as > >$w_principal->Mailtool::seleccio::Textbox > >That package qualification may mess things up, though - you may have to say > >$w_principal->{"Mailtool::seleccio::Textbox"} > >Or you could try just removing the 'our'. > >_________________________________________________________________ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx > > >_______________________________________________ >Perl-Win32-GUI-Users mailing list >Perl-Win32-GUI-Users@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >