Low cost ecommerce web development India flash website design
The method or property that has the COM index of zero is called the default
property. Visual Basic enables a programmer to not use the regular
69
method/property syntax when calling the default value; you can leave the
syntactical call to the method/property off altogether. For example, the
default method in all collections is the Item method.
Set Object = Collection.Item(2)
This would get the second item in the collection and assign the object variable
to that object. Because the Item method is the default method, you can also
call the Item method as below:
Set Object = Collection(2)
Note that both the period and the actual name of the method are missing; only
the argument to the method remains.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73