#13 Sets and gets with more then one parameter

open
nobody
None
5
2014-08-13
2005-10-15
Anonymous
No

Please extend the Dispatch-Class to support
VB-Properties with an parameter (=VB-Collections?).

Property(ByVal obj) = a

It works with the following methods:

public static void put(Dispatch dispatchTarget, String
name, object val, object val2) {
invoke(dispatchTarget, name, Dispatch.Put, new
Object[] { val, val2 }, new int[2]);
}

public static void put(Dispatch dispatchTarget, int
dispid, Object val, object val2) {
invoke(dispatchTarget, dispid, Dispatch.Put, new
Object[] { val, val2 }, new int[2]);
}

Example:

Dispatch.put(test, CatItem, ItemX, new Variant(true));

Discussion

  • clay_shooter
    clay_shooter
    2005-10-17

    Logged In: YES
    user_id=1189284

    Can you give an example of a method in a specific DLL that
    requires this? ie: How would we create a unit test for this to
    show that it works?