mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 22:06:57 +08:00
93 lines
3.1 KiB
HTML
93 lines
3.1 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||
<html>
|
||
<head>
|
||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||
<title>Stores record into paradox database</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.px-put-record" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">px_put_record</h1>
|
||
<p class="verinfo">(PECL paradox >= 1.0.0)</p><p class="refpurpose"><span class="refname">px_put_record</span> — <span class="dc-title">Stores record into paradox database</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.px-put-record-description">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>px_put_record</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$pxdoc</code></span>
|
||
, <span class="methodparam"><span class="type">array</span> <code class="parameter">$record</code></span>
|
||
[, <span class="methodparam"><span class="type">int</span> <code class="parameter">$recpos</code><span class="initializer"> = -1</span></span>
|
||
] ) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
Stores a record into a paradox database. The record is always added at
|
||
the end of the database, regardless of any free slots. Use
|
||
<span class="function"><a href="px_insert_record.html" class="function">px_insert_record()</a></span> to add a new record into the first
|
||
free slot found in the database.
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 parameters" id="refsect1-function.px-put-record-parameters">
|
||
<h3 class="title">参数</h3>
|
||
<p class="para">
|
||
<dl>
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">pxdoc</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Resource identifier of the paradox database
|
||
as returned by <span class="function"><a href="px_new.html" class="function">px_new()</a></span>.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">record</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
Associated or indexed array containing the field values as e.g.
|
||
returned by <span class="function"><a href="px_retrieve_record.html" class="function">px_retrieve_record()</a></span>.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
|
||
<dt>
|
||
<code class="parameter">recpos</code></dt>
|
||
|
||
<dd>
|
||
|
||
<p class="para">
|
||
This optional parameter may be used to specify a record number
|
||
greater than the current number of records in the database. The
|
||
function will add as many empty records as needed. There is hardly
|
||
any need for this parameter.
|
||
</p>
|
||
</dd>
|
||
|
||
|
||
</dl>
|
||
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.px-put-record-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |