Config.db

From Recital Documentation Wiki
Revision as of 11:53, 3 March 2010 by Yvonnemilne (Talk | contribs)

Jump to: navigation, search

Sample config.db system-wide configuration file.

********************************************************************************
*
* File  : config.db
*
* Purpose : System wide startup file for Recital
*
********************************************************************************
set network on && enable network file systems
set network to 1024*2 && network page size
set autolock on && enable automatic locking
set keycache on && enable index key cache
set null off && disable null support in columns
set errorversion off && enable version names for error.mem files
[[SET SYSLOGGING|set syslogging on && enable system logging
[[SET set fastindex off && fast indexing balance by pages during build
[[SET set pcache on && program caching (ignored by turbo)
[[SET set pshare on && shared memory '.dbo' execution
[[SET set icache to optimum && index cache size (disk blocks)
[[SET set safety off && allow overwriting of exiting files
[[SET set compile on && enable auto-compile mode
[[SET set development on && check for source changes and recompile
[[SET set date american && default date format
[[SET set optimize on && enable query optimization
[[SET set clockrate to 1 && clock ticks
[[SET set clock on && turn clock on
[[SET set epoch to 1988 && define epoch
[[SET set debug off && disable debug() logging

if isserver()
    [[SET set transaction isolation level read uncommitted && current transaction state
    [[SET set dohistory off && disable program command history
    [[SET set history on && maintain interactive command history
    [[SET set color on && always enable color monitors
    [[SET set blink on && blink active field when popup activated
    [[SET set escape on && enable Ctrl/Break
    [[SET set help on && always provide help in message line
    [[SET set message on && enable messages in help line
    [[SET set screenmap on && always enable screen mapping (windowing)
    [[SET set kbedit on && allow editing of interacive command lines
    [[SET set verify on && always verify ABANDON in forms
    [[SET set retainmenu on && remain in menu after selection processing
    [[SET set heading to single && list heading to single lines
    [[SET set talk off && quiet operation
    [[SET set tbufsize 512 && terminal output buffer size
    [[SET set memowindow on && enable popup notepad on memo files
    [[SET set memowindow at 4,17 to 19,62 && default memo window size
    [[SET set memowidth to 44 && Memo window width in characters
    [[SET set memoformat off && disable automatic formatting of memo text
    [[SET set highlight on && focus on popup menus
    [[SET set inkeydelay off && faster response time for Clipper apps
    [[SET set perfmeter on && display performance meter
    [[SET set shadow (iscolor()) && Enable shadows on color terminals
    [[SET set screenio on && Handle processing of character 255
    [[SET set mackey on && enable keyboard macros
    [[SET set sysmenu on && enable system window menu bar
    [[SET set descriptions on && enable field descriptions
    [[SET set formstate on && save status of Upd/Qry after menus in forms
    [[SET set border to single && single line window borders
    [[SET set mouse off && disable mouse support
    [[SET set navigate off && disable cursor navigation in forms
    [[SET set design on && enable info center DESIGN mode
    [[SET set title on && catalog file descriptions
endif

if sys(9001) && enable windows
    define window append from 2,1 to 11,78 ;
        title "Recital - Append Window" color gr+/n float grow shadow
    define window edit from 2,42 to 11,78 ;
        title "Recital - Edit Window" panel color w+/bg,,gr+/rb float grow shadow
    define window browse from 2,1 to 20,39 ;
        title "Recital - Browse Window" panel color w+/bg float grow shadow
    define window memo from 14,42 to 20,78 ;
        title "Recital - Memo Window" panel color g/w,,gr+/rb float grow shadow
    define window command from 14,42 to 20,77 ;
        title "Recital - Command Window" color n/bg panel float shadow grow
    define window error from 7,9 to 18,69 ;
        title 'Recital - Error Window' color gr+/r float grow
    set window of append to append
    set window of edit to edit
    set window of browse to browse
    set window of memo to memo
    set window of command to command
    set window of error to error
    set errorwindow on
    set commandwindow on
    activate screen
    set screenmap off
    clear
    set screenmap on
endif

alias pwd "? default()"
alias cp "copy file "
alias mv "rename "
alias rm "erase "
alias ls "run('ls -l %1', .t.)"
alias ps "run('ps -ef ', .t.)"
alias cd "set default to %1"
alias cls "clear screen"