NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Currency.FromOACurrency

Creates a Currency from an OLE Automation Currency.

[Visual Basic]
Public Shared Function FromOACurrency( _
   ByVal cy As Long _
) As Currency
[C#]
public static Currency FromOACurrency(
   long cy
);
[C++]
public: static Currency FromOACurrency(
   __int64 cy
);
[JScript]
public static function FromOACurrency(
   cy : long
) : Currency;

Parameters

cy
An OLE Automation Currency value.

Return Value

A Currency value that is the bitwise equivalent of the OLE Automation Currency value.

Remarks

The FromOACurrency method provides the functionality of creating a Currency value from an OLE Automation Currency. The OLE Automation Currency value is stored as a long (Int64).

This method applies no scaling to the Currency value and is, essentially, a bitwise copy of the value, bit by bit.

See Also

Currency Structure | Currency Members | System Namespace