Difference between revisions of "Config.db"
Yvonnemilne (Talk | contribs) |
Yvonnemilne (Talk | contribs) |
||
(9 intermediate revisions by one user not shown) | |||
Line 11: | Line 11: | ||
[[SET NETWORK|set network]] to 1024*2 && network page size<br> | [[SET NETWORK|set network]] to 1024*2 && network page size<br> | ||
[[SET AUTOLOCK|set autolock]] on && enable automatic locking<br> | [[SET AUTOLOCK|set autolock]] on && enable automatic locking<br> | ||
− | |||
[[SET NULL|set null]] off && disable null support in columns<br> | [[SET NULL|set null]] off && disable null support in columns<br> | ||
− | [[SET | + | [[SET ERRORVERSION|set errorversion]] off && enable version names for error.mem files<br> |
− | [[SET SYSLOGGING|set syslogging on && enable system logging<br> | + | [[SET SYSLOGGING|set syslogging]] on && enable system logging<br> |
− | [[SET set fastindex off && fast indexing balance by pages during build<br> | + | [[SET FASTINDEX|set fastindex]] off && fast indexing balance by pages during build<br> |
− | [[SET set pcache on && program caching (ignored by turbo)<br> | + | [[SET PCACHE|set pcache]] on && program caching (ignored by turbo)<br> |
− | [[SET set pshare on && shared memory '.dbo' execution<br> | + | [[SET PSHARE|set pshare]] on && shared memory '.dbo' execution<br> |
− | [[SET set icache to optimum && index cache size (disk blocks)<br> | + | [[SET ICACHE|set icache]] to optimum && index cache size (disk blocks)<br> |
− | [[SET set safety off && allow overwriting of exiting files<br> | + | [[SET SAFETY|set safety]] off && allow overwriting of exiting files<br> |
− | [[SET set compile on && enable auto-compile mode<br> | + | [[SET COMPILE|set compile]] on && enable auto-compile mode<br> |
− | [[SET set development on && check for source changes and recompile<br> | + | [[SET DEVELOPMENT|set development]] on && check for source changes and recompile<br> |
− | [[SET set date american && default date format<br> | + | [[SET DATE|set date]] american && default date format<br> |
− | [[SET set optimize on && enable query optimization<br> | + | [[SET OPTIMIZE|set optimize]] on && enable query optimization<br> |
− | [[SET set clockrate to 1 && clock ticks<br> | + | [[SET CLOCKRATE|set clockrate]] to 1 && clock ticks<br> |
− | [[SET set clock on && turn clock on<br> | + | [[SET CLOCK|set clock]] on && turn clock on<br> |
− | [[SET set epoch to 1988 && define epoch<br> | + | [[SET EPOCH|set epoch]] to 1988 && define epoch<br> |
− | [[SET set debug off && disable debug() logging<br> | + | [[SET DEBUG|set debug]] off && disable debug() logging<br> |
<br> | <br> | ||
− | if isserver()<br> | + | [[IF|if]] [[ISSERVER()|isserver()]]<br> |
− |     [[SET set transaction isolation level read uncommitted && current transaction state<br> | + |     [[SET TRANSACTION|set transaction]] isolation level read uncommitted && current transaction state<br> |
− |     [[SET set dohistory off && disable program command history<br> | + |     [[SET DOHISTORY|set dohistory]] off && disable program command history<br> |
− |     [[SET set history on && maintain interactive command history<br> | + |     [[SET HISTORY|set history]] on && maintain interactive command history<br> |
− |     [[SET set color on && always enable color monitors<br> | + |     [[SET COLOR|set color]] on && always enable color monitors<br> |
− |     [[SET set blink on && blink active field when popup activated<br> | + |     [[SET BLINK|set blink]] on && blink active field when popup activated<br> |
− |     [[SET set escape on && enable Ctrl/Break<br> | + |     [[SET ESCAPE|set escape]] on && enable Ctrl/Break<br> |
− |     [[SET set help on && always provide help in message line<br> | + |     [[SET HELP|set help]] on && always provide help in message line<br> |
− |     [[SET set message on && enable messages in help line<br> | + |     [[SET MESSAGE|set message]] on && enable messages in help line<br> |
− |     [[SET set screenmap on && always enable screen mapping (windowing)<br> | + |     [[SET SCREENMAP|set screenmap]] on && always enable screen mapping (windowing)<br> |
− |     [[SET set kbedit on && allow editing of interacive command lines<br> | + |     [[SET KBEDIT|set kbedit]] on && allow editing of interacive command lines<br> |
− |     [[SET set verify on && always verify ABANDON in forms<br> | + |     [[SET VERIFY|set verify]] on && always verify ABANDON in forms<br> |
− |     [[SET set retainmenu on && remain in menu after selection processing<br> | + |     [[SET RETAINMENU|set retainmenu]] on && remain in menu after selection processing<br> |
− |     [[SET set heading to single && list heading to single lines<br> | + |     [[SET HEADING|set heading]] to single && list heading to single lines<br> |
− |     [[SET set talk off && quiet operation<br> | + |     [[SET TALK|set talk]] off && quiet operation<br> |
− |     [[SET set tbufsize 512 && terminal output buffer size<br> | + |     [[SET TBUFSIZE|set tbufsize]] 512 && terminal output buffer size<br> |
− |     [[SET set memowindow on && enable popup notepad on memo files<br> | + |     [[SET MEMOWINDOW|set memowindow]] on && enable popup notepad on memo files<br> |
− |     [[SET set memowindow at 4,17 to 19,62 && default memo window size<br> | + |     [[SET MEMOWINDOW|set memowindow]] at 4,17 to 19,62 && default memo window size<br> |
− |     [[SET set memowidth to 44 && Memo window width in characters<br> | + |     [[SET MEMOWIDTH|set memowidth]] to 44 && Memo window width in characters<br> |
− |     [[SET set memoformat off && disable automatic formatting of memo text<br> | + |     [[SET MEMOFORMAT|set memoformat]] off && disable automatic formatting of memo text<br> |
− |     [[SET set highlight on && focus on popup menus<br> | + |     [[SET HIGHLIGHT|set highlight]] on && focus on popup menus<br> |
− |     [[SET set inkeydelay off && faster response time for Clipper apps<br> | + |     [[SET INKEYDELAY|set inkeydelay]] off && faster response time for Clipper apps<br> |
− |     [[SET set perfmeter on && display performance meter<br> | + |     [[SET PERFMETER|set perfmeter on]] && display performance meter<br> |
− |     [[SET set shadow (iscolor()) && Enable shadows on color terminals<br> | + |     [[SET SHADOW|set shadow]] ([[ISCOLOR()|iscolor()]]) && Enable shadows on color terminals<br> |
− |     [[SET set screenio on && Handle processing of character 255<br> | + |     [[SET SCREENIO|set screenio]] on && Handle processing of character 255<br> |
− |     [[SET set mackey on && enable keyboard macros<br> | + |     [[SET MACKEY|set mackey]] on && enable keyboard macros<br> |
− |     [[SET set sysmenu on && enable system window menu bar<br> | + |     [[SET SYSMENU|set sysmenu]] on && enable system window menu bar<br> |
− |     [[SET set descriptions on && enable field descriptions <br> | + |     [[SET DESCRIPTIONS|set descriptions]] on && enable field descriptions <br> |
− |     [[SET set formstate on && save status of Upd/Qry after menus in forms<br> | + |     [[SET FORMSTATE|set formstate]] on && save status of Upd/Qry after menus in forms<br> |
− |     [[SET set border to single && single line window borders<br> | + |     [[SET BORDER|set border]] to single && single line window borders<br> |
− |     [[SET set mouse off && disable mouse support<br> | + |     [[SET MOUSE|set mouse]] off && disable mouse support<br> |
− |     [[SET set navigate off && disable cursor navigation in forms<br> | + |     [[SET NAVIGATE|set navigate]] off && disable cursor navigation in forms<br> |
− |     [[SET set design on && enable info center DESIGN mode<br> | + |     [[SET DESIGN|set design]] on && enable info center DESIGN mode<br> |
− |     [[SET set title on && catalog file descriptions<br> | + |     [[SET TITLE|set title]] on && catalog file descriptions<br> |
− | endif<br> | + | [[IF|endif]]<br> |
<br> | <br> | ||
− | if [[SYS()|sys(9001)]] && enable windows<br> | + | [[IF|if]] [[SYS()|sys(9001)]] && enable windows<br> |
    [[DEFINE WINDOW|define window]] append from 2,1 to 11,78 ;<br> |     [[DEFINE WINDOW|define window]] append from 2,1 to 11,78 ;<br> | ||
        title "Recital - Append Window" color gr+/n float grow shadow<br> |         title "Recital - Append Window" color gr+/n float grow shadow<br> | ||
Line 82: | Line 81: | ||
    [[SET WINDOW OF BROWSE|set window of browse]] to browse<br> |     [[SET WINDOW OF BROWSE|set window of browse]] to browse<br> | ||
    [[SET WINDOW OF MEMO|set window of memo]] to memo<br> |     [[SET WINDOW OF MEMO|set window of memo]] to memo<br> | ||
− |     [[SET | + |     [[SET WINDOW OF COMMAND|set window of command]] to command<br> |
    [[SET WINDOW OF ERROR|set window of error]] to error<br> |     [[SET WINDOW OF ERROR|set window of error]] to error<br> | ||
    [[SET ERRORWINDOW|set errorwindow]] on<br> |     [[SET ERRORWINDOW|set errorwindow]] on<br> | ||
Line 88: | Line 87: | ||
    [[ACTIVATE SCREEN|activate screen]]<br> |     [[ACTIVATE SCREEN|activate screen]]<br> | ||
    [[SET SCREENMAP|set screenmap]] off<br> |     [[SET SCREENMAP|set screenmap]] off<br> | ||
− |     clear<br> | + |     [[CLEAR|clear]]<br> |
    [[SET SCREENMAP|set screenmap]] on<br> |     [[SET SCREENMAP|set screenmap]] on<br> | ||
− | endif<br> | + | [[IF|endif]]<br> |
<br> | <br> | ||
[[ALIAS|alias]] pwd "? [[DEFAULT()|default()]]"<br> | [[ALIAS|alias]] pwd "? [[DEFAULT()|default()]]"<br> | ||
Line 100: | Line 99: | ||
[[ALIAS|alias]] cd "[[SET DEFAULT|set default]] to %1"<br> | [[ALIAS|alias]] cd "[[SET DEFAULT|set default]] to %1"<br> | ||
[[ALIAS|alias]] cls "[[CLEAR SCREEN|clear screen]]"<br> | [[ALIAS|alias]] cls "[[CLEAR SCREEN|clear screen]]"<br> | ||
+ | [[Category:Documentation]] | ||
+ | [[Category:Reference]] | ||
+ | [[Category:Configuration]] | ||
+ | [[Category:RDS Configuration]] |
Latest revision as of 10:32, 5 March 2010
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 null off && disable null support in columns
set errorversion off && enable version names for error.mem files
set syslogging on && enable system logging
set fastindex off && fast indexing balance by pages during build
set pcache on && program caching (ignored by turbo)
set pshare on && shared memory '.dbo' execution
set icache to optimum && index cache size (disk blocks)
set safety off && allow overwriting of exiting files
set compile on && enable auto-compile mode
set development on && check for source changes and recompile
set date american && default date format
set optimize on && enable query optimization
set clockrate to 1 && clock ticks
set clock on && turn clock on
set epoch to 1988 && define epoch
set debug off && disable debug() logging
if isserver()
set transaction isolation level read uncommitted && current transaction state
set dohistory off && disable program command history
set history on && maintain interactive command history
set color on && always enable color monitors
set blink on && blink active field when popup activated
set escape on && enable Ctrl/Break
set help on && always provide help in message line
set message on && enable messages in help line
set screenmap on && always enable screen mapping (windowing)
set kbedit on && allow editing of interacive command lines
set verify on && always verify ABANDON in forms
set retainmenu on && remain in menu after selection processing
set heading to single && list heading to single lines
set talk off && quiet operation
set tbufsize 512 && terminal output buffer size
set memowindow on && enable popup notepad on memo files
set memowindow at 4,17 to 19,62 && default memo window size
set memowidth to 44 && Memo window width in characters
set memoformat off && disable automatic formatting of memo text
set highlight on && focus on popup menus
set inkeydelay off && faster response time for Clipper apps
set perfmeter on && display performance meter
set shadow (iscolor()) && Enable shadows on color terminals
set screenio on && Handle processing of character 255
set mackey on && enable keyboard macros
set sysmenu on && enable system window menu bar
set descriptions on && enable field descriptions
set formstate on && save status of Upd/Qry after menus in forms
set border to single && single line window borders
set mouse off && disable mouse support
set navigate off && disable cursor navigation in forms
set design on && enable info center DESIGN mode
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"