參考手冊

DTW_TB_DLIST


AIX HP-UX Linux OS/2 OS/390 OS/400 PTX SUN Win NT
X X X X X X X X X

目的

從 Net.Data 表格中產生 HTML 定義列示。

格式

@DTW_TB_DLIST(table, term, def, termstyle, defstyle, link, link_u, image, image_u)

@DTW_TB_DLIST(table, term, def, termstyle, defstyle, link, link_u, image)

@DTW_TB_DLIST(table, term, def, termstyle, defstyle, link, link_u)

@DTW_TB_DLIST(table, term, def, termstyle, defstyle, link)

@DTW_TB_DLIST(table, term, def, termstyle, defstyle)

@DTW_TB_DLIST(table, term, def, termstyle)

@DTW_TB_DLIST(table, term, def)

@DTW_TB_DLIST(table, term)

@DTW_TB_DLIST(table)

參數

表 128. DTW_TB_DLIST 參數
資料類型 參數 使用 說明
表格 table IN 指定巨集表格變數來顯示為 HTML 列示的符號。
整數 term IN table 中的直欄號碼, 其包含 term 名稱值 (在 <dt> 標籤之後的本文)。預設值是使用第一欄。
整數 def IN table 中的直欄號碼, 其包含 term 定義值 (在 <dd> 標籤之後的本文)。 預設值是使用第二直欄。
字串 termstyle IN 一個包含 term 名稱值之 HTML 元素列示的變數或文字字串。 預設值是使用沒有樣式的標 籤。
字串 defstyle IN 一個包含 term 定義值之 HTML 元素列示的變數或文字字串。 預設值是使用沒有樣式的標 籤。
字串 link IN 指定哪一個 HTML 元素是由 HTML 鏈結所產生的。有效的值有 DT 和 DD。預設值是不產生 HTML 鏈結。
整數 link_u IN 在包含 HTML 參照的 URL 之 table 中的欄號碼。預設值是不產生 HTML 鏈結。
字串 image IN 指定列入壓縮檔所產生的是哪一個 HTML 元素。有效的值有 DT 和 DD。預設值是不產生列入壓縮檔 (DT)。
整數 image_u IN 在包含列入壓縮檔之 URL 之 table 中的欄號碼。預設值是不產生列入壓縮檔。

回覆碼

表 129. DTW_TB_DLIST 回覆碼
回覆碼 說明
-1001 伺服器無法處理 Net.Data 的配置記憶體要求。
1001 輸入參數包含 NULL 值。
1003 函數呼叫上傳遞的參數數目不正確。
1004 函數呼叫上傳遞的參數必須是 Net.Data 巨集表變數,但卻是不同的變數類型。
1005 函數呼叫上傳遞的參數必須是字串變數,但卻是不同的變數類型。
1007 參數包含的值無效。
1008 參數超出表格界限。

範例

範例 1:依據表格資料,建立一個產生 下列 HTML 的定義列表

@DTW_TB_DLIST(Mytable,"3","4","b i","strong","DD","2","DT","1")

結果:

<dl>
<dt>
<img src="http://www.mycompany.com/images/image1.gif"
alt=""><b><i>image1text</i></b></dt>
<dd>
<a href="http://www.mycompany.com/link1.html"><strong>link1text</strong></a></dd>
<dt>
<img src="http://www.mycompany.com/images/image2.gif"
alt=""><b><i>image2text</i></b></dt>
<dd>
<a href="http://www.mycompany.com/link2.html"><strong>link2text</strong></a></dd>
<dt>
<img src="http://www.mycompany.com/images/image3.gif"
alt=""><b><i>image3text</i></b></dt>
<dd>
<a href="http://www.mycompany.com/link3.html"><strong>link3text</strong></a></dd>
<dt>
<img src="http://www.mycompany.com/images/image4.gif"
alt=""><b><i>image4text</i></b></dt>
<dd>
<a href="http://www.mycompany.com/link4.html"><strong>link4text</strong></a></dd>
</dl>


[ 頁面頂端 | 前一頁 | 下一頁 | 目錄 | 索引 ]