Microsoft KB Archive/51417

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

Article ID: 51417

Article Last Modified on 11/21/2006



This article was previously published under Q51417



SUMMARY
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 &quot;Currency type illegal in alternate math pack&quot; errors.

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



MORE INFORMATION
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 &quot;at&quot; sign), or you can use the DIM statement with the AS CURRENCY clause (DIM x AS CURRENCY).

Additional query words: BasicCom

Keywords: KB51417

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.