|
Creates a Sales Invoice object. |
|
|
ISInvce* CreateSInvce ( VARIANT_BOOL bCanChange ) |
|
|
Parameters | bCanChange | [in] True if you want to make changes (perform inserts, updates or deletes) to the object you are creating, otherwise false. | | Return value |
A pointer to a Sales Invoice object interface. | | Remarks |
| How to explicitly destroy this object? |
|
| C++ |
| pSInvce = NULL |
| The object is destroyed immediately. |
| C# |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oSInvce) |
| oSInvce = null |
| By assigning the object to null 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 oSInvce = Nothing |
| The object is destroyed immediately. |
| VBN |
| System.Runtime.InteropServices.Marshal.ReleaseComObject(oSInvce) |
| oSInvce = Nothing |
| By assigning the object to Nothing 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 |
|
|
|
Samples |
|
|
C++ |
|
ISInvcePtr pSInvce = pYear->CreateSInvce (VARIANT_TRUE);
|
|
|
C# |
|
SInvce oSInvce = oYear.CreateSInvce (true);
|
|
|
VBS |
|
Dim oSInvce
Set oSInvce = oYear.CreateSInvce(True)
|
|
|
VB.NET |
|
Dim oSInvce As ClSdk.SInvce
oSInvce = oYear.CreateSInvce(True)
|
|