Parameters | sYear | [in] The financial year you want to create an interface of. When 0 is supplied, the last financial year of the dossier is used. | | Return value |
A pointer to a Financial Year object interface. | | Remarks |
| How to explicitly destroy this object? |
|
| C++ |
| pYear = NULL |
| If other objects (pEntry, pBalan,...) still refer to this object, assigning the object to NULL has no effect. Otherwise the object is destroyed immediately. |
| C# |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oYear) |
| oYear = null |
| If other objects (oEntry, oBalan,...) still refer to this object, assigning the object to null has no effect. Otherwise, the object is released (the reference count is decremented) but not destroyed. The garbage collector decides when the object is actually destroyed. Adding the ReleaseComObject-statement speeds up the actual destruction of the object. |
| VBS |
| Set oYear = Nothing |
| If other objects (oEntry, oBalan,...) still refer to this object, assigning the object to Nothing has no effect. Otherwise the object is destroyed immediately. |
| VBN |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oYear) |
| oYear = Nothing |
| If other objects (oEntry, oBalan,...) still refer to this object, assigning the object to Nothing has no effect. Otherwise the object is released (the reference count is decremented) but not destroyed. The garbage collector decides when the object is actually destroyed. Adding the ReleaseComObject-statement speeds up the actual destruction of the object. |
|
|
|
See Also |
|
|