CAL Environment Variables

ChemFinder provides several variables to allow you to retrieve information about the current ChemFinder environment. They cannot be set directly, but are modified as a consequence of other commands.

For example, the menu command:

Record Next

increments the current RECNO by 1.

For a complete list of variables, click Help on the Enter Cal Command dialog box.

$INDEX

$RECNO

$NUM_RECS

$DTBA_NAME_LONG

$DTBA_NAME_SHORT

$FORM_NAME_LONG

$FORM_NAME_SHORT

$CFW_DIR

$FORM_DIR

$SYSTEM_DIR

Examples

Command Action
SETVAL 1 $RECNO V1 now equals the number of the current record.
SETVAL V1 $NUM_RECS V1 now equals total number of records in the current list.
SETVAL V1 $DTBA_NAME_
LONG
V1 now equals, for example c:\chemfndr\mydb.mdb. 
SETVAL V1 $FORM_NAME_
SHORT
V1 now equals, for example, mydb.
SETVAL V1 $SYSTEM_DIR V1 now equals, for example, c:\chemfndr\system.


2005 CambridgeSoft Corporation. All Rights Reserved. Privacy Statement
Tel  800 315-7300 / 617 588-9300     Fax  617 588-9390     Email   info@cambridgesoft.com
CambridgeSoft Corporation, 100 CambridgePark Drive, Cambridge, MA 02140 USA