faqts : Computers : Programming : Languages : Python : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 4 people (75%) answered Yes
Recently 0 of 1 people (0%) answered Yes

Entry

When a method has a boolean return, and two output-params, how do I call it?

May 20th, 2000 03:16
unknown unknown, Dag Sunde, Oleg Broytmann, Fredrik Lundh


When the idl defines it like:
    boolean LoginToMarket
    (
        out long lLoginId,
        out Object supplier)
        raises (NoAccess);

...where both parameters are out-values, and the method has a 
return-value, it should be called without any parameters, and returns a 
list with the return-value at position 0, and the parameters following 
in the defined order...

[Dbg]>>> print self.m_pElTermin.LoginToMarket()
(1, 6, <omniORB.CORBA.Object instance at 1871cf0>)
[Dbg]>>>