bas7advr.hlp (
Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software,
purely for historical purposes.
If you're looking for up-to-date documentation, particularly for programming,
you should not rely on the information found here, as it will be woefully
out of date.
SetFormatCC Routine Details
◄Syntax► ◄Details► ◄Example► ◄Contents► ◄Index► ◄Back►
──────────────────────────────────────────────────────────────────────────────
The SetFormatCC routine sets the country code used by the FormatX$ functions.
SetFormatCC (countrycode%)
■ The argument countrycode% is the international telephone dialing
prefix for the country chosen as the target audience when using the
FormatX$ functions.
■ The only reason to use SetFormatCC is to change what the FormatX$
functions expect as thousands-separator and decimal-point formatting
characters.
■ The default setting for the country code is the United States (1). If
you set the country code to France (33), the following statement
would display the number 1,000 (U.S.) as 1.000,00:
PRINT FormatD$ (1D00, "#.##0,00")
■ The format you use with the FormatX$ functions must be compatible
with the current country code in order for formatted numbers to
display properly.
■ If you set the country code to one of the following countries, the
FormatX$ functions expect alternative formatting characters:
Austria, Belgium, Brazil, Canada (French), Denmark, France, Germany,
Italy, Netherlands, Norway, Spain, Sweden, or Switzerland.
■ To use SetFormatCC in the QBX environment, use the DTFMTER.QLB Quick
library. To use SetFormatCC outside the QBX environment, link your
program with the appropriate DTFMTxx.LIB file. Depending on the
compiler options you chose when you installed BASIC, one or more of
the following files will be available:
Filename Compiler options
════════════ ═════════════════════════════════════════════
DTFMTER.LIB 80x87 or emulator math; DOS or OS/2 real mode
DTFMTAR.LIB Alternate math; DOS or OS/2 real mode
DTFMTEP.LIB 80x87 or emulator math; OS/2 protected mode
DTFMTAP.LIB Alternate math; OS/2 protected mode
■ The FORMAT.BI header file contains the necessary function
declarations for SetFormatCC.
■ For more information on using libraries, see "Creating and Using
Quick Libraries" and "Using LINK and LIB" in the Programmer's Guide.