Microsoft KB Archive/51417

From BetaArchive Wiki
< Microsoft KB Archive
Revision as of 17:57, 18 July 2020 by 3155ffGd (talk | contribs) (importing KB archive)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Knowledge Base


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 "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.

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


Additional query words: BasicCom

Keywords: KB51417