niki schrieb:
> Thomas Heller wrote:
>> When I assign a COM pointer to this COM object to the dictionary's 'Item', 
>> it will retrieve
>> the defaultvalue from the COM pointer and store that.
>> When I assign a pointer to the dictionaries 'Item_ref_', it will store the 
>> COM pointer itself.
>> 
>> Fine, so far.  If I understand you correctly, you suggest that setting the 
>> 'Item' property
>> should automatically determine what should happen:
>> 
>> def _set_Item(self, value):
>>     if has_default_value_with_dispid_zero(value):
>>         # use the 'propputref' COM method
>>     else:
>>         # use the 'propput' COM method
>> 
>> Is that the semantics that the COM property requires?
>> Is this what VB does? Or is there a way in VB to select between the two 
>> things?
> 
> IAUC VB uses LET a=b and SET a=b to select which method to use.
> 

Thanks.  That was the hint that I needed, it lets me experiment with VB 
(shudder)
to examine the behaviour.

Thomas


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
comtypes-users mailing list
comtypes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/comtypes-users

Reply via email to