ug_ch5a.htm

来自「db.* (pronounced dee-be star) is an adva」· HTM 代码 · 共 1,565 行 · 第 1/4 页

HTM
1,565
字号
<p><font size="2"><b>d_setro</b><i>(SET, task, dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current record from current owner of<i>SET</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_setrm</b><i>(SET, task, dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current record from current member of<i>SET</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_setor</b><i>(SET,task, dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current owner of <i>SET</i> from currentrecord.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_setom</b><i>(SET1, SET2, task,dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current owner of <i>SET1</i> from currentmember of <i>SET2</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_setoo</b><i>(SET1, SET2, task,dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current owner of <i>SET1</i> from currentowner of <i>SET2</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_setmr</b><i>(SET,task, dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current member of <i>SET</i> from currentrecord.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_setmo</b><i>(SET1, SET2, task,dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current member of <i>SET1</i> from currentowner of <i>SET2</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_setmm</b><i>(SET1, SET2,task,dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set current member of <i>SET1</i> from currentmember of <i>SET2</i>.</font></p></td></tr><tr><td valign="top" colspan="2"><p><font size="2"><b>Currency Access Functions</b></font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_crget</b><i>(dba, task, dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Get database address of currentrecord.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_crset</b><i>(dba, task, dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set database address of currentrecord.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_csmget</b><i>(SET, dba, task,dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Get database address of current member of<i>SET</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_csmset</b><i>(SET, dba, task,dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Set database address of current member of<i>SET</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_csoget</b><i>(SET, dba, task,dbn)</i></font></p></td><td width="60%" valign="top"><p><font size="2">Get database address of current owner of<i>SET</i>.</font></p></td></tr><tr><td width="40%" valign="top"><p><font size="2"><b>d_csoset</b>(SET, dba, task, dbn)</font></p></td><td width="60%" valign="top"><p><font size="2">Set database address of current owner ofSET.</font></p></td></tr></table><h2><a name="Retrieval" id="Retrieval"></a>5.4 Data Retrieval</h2><p><font size="2">Table 5-4 lists the functions used for dataretrieval.</font></p><p align="center"><b>Table 5-4 Data Retrieval Functions</b></p><table cellspacing="0" border="0" cellpadding="7" width="542"><tr><td valign="top" colspan="2"><p><font size="2"><b>Key Access Functions</b></font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_keyfrst(</b><i>KEY, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find record with first <i>KEY</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_keylast(</b><i>KEY, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find record with last <i>KEY</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_keyfind(</b><i>KEY, task, val,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find first record with exactly matching<i>KEY</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_keynext(</b><i>KEY, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find record with next <i>KEY</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_keyprev(</b><i>KEY, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find record with previous <i>KEY</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_keyread(</b><i>val, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Read contents of last key scanned.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_curkey(</b><i>task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Set current keys from current record.</font></p></td></tr><tr><td valign="top" colspan="2">&nbsp;</td></tr><tr><td valign="top" colspan="2"><p><font size="2"><b>Set Navigation Functions</b></font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_findfm(</b><i>SET, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find first member of <i>SET</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_findlm(</b><i>SET, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find last member of <i>SET</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_findnm(</b><i>SET, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find next member of <i>SET</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_findpm(</b><i>SET, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find previous member of <i>SET</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_findco(</b><i>SET,task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find owner of current record.</font></p></td></tr><tr><td valign="top" colspan="2">&nbsp;</td></tr><tr><td valign="top" colspan="2"><p><font size="2"><b>Direct Access RetrievalFunctions</b></font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_recfrst(</b><i>REC, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find first occurrence of record type<i>REC</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_reclast(</b><i>REC, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find last occurrence of record type<i>REC</i>.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_recnext(</b><i>task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find next occurrence of current recordtype.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_recprev(</b><i>task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Find previous occurrence of current recordtype.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_recset(</b><i>REC, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Set the current occurrence of the record type tothe current record.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_recread(</b><i>val, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Read whole contents of current record.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_crread(</b><i>FLD, val, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Read data from field of currentrecord.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_csmread(</b><i>SET, FLD, val, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Read data from field of currentmember.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_csoread(</b><i>SET, FLD, val, task,dbn</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Read data from field of current owner.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_encode_dba(</b><i>file, slot,task,dba</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Encode database address from file and slotnumber.</font></p></td></tr><tr><td width="42%" valign="top"><p><font size="2"><b>d_decode_dba(</b><i>dba, file, slot,task</i><b>)</b></font></p></td><td width="58%" valign="top"><p><font size="2">Decode file and slot number from databaseaddress.</font></p></td></tr></table><p><font size="2">Record occurrences are located using<b><i>db.*</i></b>'s key retrieval functions, set navigationfunctions, direct access, or any combination of these.</font></p><p><a href="UG_Ch5b.htm">Next Page</a></p></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?