[Gambas-user] R: Can't print in Gambas 3 [solved]
Benoît Minisini
gambas at ...1...
Thu May 17 10:46:47 CEST 2012
Le 17/05/2012 10:36, Ru Vuott a écrit :
>
>> No. You must specify the event name if you want to catch the
>> events
>> raised by the Printer object.
>>
>> --
>> Benoît Minisini
>>
>
> ...Oh, yes, Benoît. I forgot that it's an "object" !
>
> Well, so:
>
> ****
>
> Private mijnprinter As New Printer
>
>
> Public Sub Form_Open()
>
> Object.Attach(mijnprinter, Me, "pripri") '<---- We need it !!!
The normal syntax is:
mijnprinter = New Printer As "pripri"
I suggest you read the documentation of the NEW instruction.
Regards,
--
Benoît Minisini
More information about the User
mailing list