Click here to Skip to main content
15,883,558 members
Home / Discussions / COM
   

COM

 
Generaldefault properties on COM interfaces Pin
Dave Bryant1-Jul-03 16:26
Dave Bryant1-Jul-03 16:26 
GeneralRe: default properties on COM interfaces Pin
Mil101-Jul-03 18:59
Mil101-Jul-03 18:59 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant2-Jul-03 10:35
Dave Bryant2-Jul-03 10:35 
GeneralRe: default properties on COM interfaces Pin
Mil102-Jul-03 18:46
Mil102-Jul-03 18:46 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant2-Jul-03 18:49
Dave Bryant2-Jul-03 18:49 
GeneralRe: default properties on COM interfaces Pin
Mil102-Jul-03 21:56
Mil102-Jul-03 21:56 
GeneralRe: default properties on COM interfaces Pin
Dave Bryant3-Jul-03 8:55
Dave Bryant3-Jul-03 8:55 
GeneralRe: default properties on COM interfaces Pin
Vi23-Jul-03 21:43
Vi23-Jul-03 21:43 
Because "Field" property gives an object (some interface like IField or IDispatch), the VB makes some additional action.

fld = "blah"

This always works because the VB cannot assign the string value to the object variable. He should call some method(property) for this. And this action is a calling of property-by-default (with dispid=0) if this property is presented by the object.

msg.Segment.Field = "blah"

This never works because the VB will call the "Field" property of msg.Segment object with parameter which equals to "blah". It gives the compilation error because probably the "Field" property does not have the parameters.

Try the following construction

msg.Segment.Field() = "blah"



With best wishes,
Vita
GeneralSending events Pin
act_x30-Jun-03 4:42
act_x30-Jun-03 4:42 
GeneralWhen whould this occur?... Pin
CherezZaboro30-Jun-03 3:37
CherezZaboro30-Jun-03 3:37 
GeneralRe: When whould this occur?... Pin
Vi230-Jun-03 4:34
Vi230-Jun-03 4:34 
GeneralRe: When whould this occur?... Pin
CherezZaboro30-Jun-03 5:48
CherezZaboro30-Jun-03 5:48 
GeneralRe: When whould this occur?... Pin
Vi21-Jul-03 1:51
Vi21-Jul-03 1:51 
GeneralOleCreateFromFile and OleCreatePictureIndirect Pin
Florin Ochiana28-Jun-03 22:12
Florin Ochiana28-Jun-03 22:12 
GeneralExcel COM Add-In Pin
Anonymous27-Jun-03 13:09
Anonymous27-Jun-03 13:09 
Generalvariant data type.. Pin
safee ullah26-Jun-03 19:46
safee ullah26-Jun-03 19:46 
GeneralRe: variant data type.. Pin
Fredrik Skog26-Jun-03 20:19
Fredrik Skog26-Jun-03 20:19 
GeneralRe: variant data type.. Pin
Vi227-Jun-03 0:56
Vi227-Jun-03 0:56 
GeneralCOM/ASP Pin
Kant26-Jun-03 5:12
Kant26-Jun-03 5:12 
GeneralRe: COM/ASP Pin
Mil1030-Jun-03 20:38
Mil1030-Jun-03 20:38 
Generalconverting an idl file to .h Pin
si_6926-Jun-03 0:47
si_6926-Jun-03 0:47 
GeneralRe: converting an idl file to .h Pin
valikac26-Jun-03 5:30
valikac26-Jun-03 5:30 
GeneralRe: converting an idl file to .h Pin
Vi227-Jun-03 1:24
Vi227-Jun-03 1:24 
GeneralProblem in passing structure pointer via Interface Pin
mpb24-Jun-03 20:48
mpb24-Jun-03 20:48 
GeneralRe: Problem in passing structure pointer via Interface Pin
Aravinthan25-Jun-03 3:03
Aravinthan25-Jun-03 3:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.