--- In [email protected], "Sheri" <sheri...@...> wrote: > > --- In [email protected], "entropyreduction" > <alancampbelllists+yahoo@> wrote: > > > > Yes, but what I'm not doing is fetching the default value, if > > there is one. Time to reinstate that I think. > > Wouldn't that be some static default, whereas here the default value can be > manipulated by the user? Try sending the VT_ERROR Variant ByRef. > > I read that methods that change the content of an argument must receive the > variant with the VT_BYREF flag set. > > Maybe the method itself needs to change the content of the argument to its > default. > > Also see either of these has anything useful: > <http://www.canaimasoft.com/f90VB/OnlineManuals/Reference/TH_112.htm> > <http://blogs.msdn.com/eric_carter/archive/2004/04/15/114079.aspx> >
Here it states that to use a default value, the optional variant value must test as "missing". Possibly the result of initializing the empty variant. <http://msdn.microsoft.com/en-us/library/aa164532%28office.10%29.aspx>
