KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q51417: CURRENCY Data Type Not Available in Alternate Math (BC /FPa)

Article: Q51417
Product(s): See article
Version(s): 7.00 7.10 | 7.00 7.10
Operating System(s): MS-DOS | OS/2
Keyword(s): ENDUSER | | mspl13_basic
Last Modified: 6-AUG-1990

The CURRENCY data type available in Microsoft BASIC Professional
Development System (PDS) versions 7.00 and 7.10 can be used only with
the coprocessor/emulation math package (BC /FPi, the default). The
CURRENCY type is not supported in the alternate math package (BC /FPa
option). Trying to compile a program that uses CURRENCY variables with
the alternate math package results in "Currency type illegal in
alternate math pack" errors.

This information applies to Microsoft BASIC Professional Development
System (PDS) versions 7.00 and 7.10 for MS-DOS and MS OS/2.

The implementation of a CURRENCY data type for alternate math would
have delayed the release of BASIC PDS 7.00 and 7.10, keeping the
product from developers who need the other new features. This feature
is under review and will be considered for inclusion in a future
release.

The CURRENCY data type is not found in Microsoft BASIC Compiler
versions earlier than Microsoft BASIC PDS version 7.00.

You can declare a variable with the CURRENCY data type by appending
the variable name with the suffix @ (the "at" sign), or you can use
the DIM statement with the AS CURRENCY clause (DIM x AS CURRENCY).

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.