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_TABLE(table, options, collist, cellstyle, link_u, image_u, url_text, url_style)
@DTW_TB_TABLE(table, options, collist, cellstyle, link_u, image_u, url_text)
@DTW_TB_TABLE(table, options, collist, cellstyle, link_u, image_u)
@DTW_TB_TABLE(table, options, collist, cellstyle, link_u)
@DTW_TB_TABLE(table, options, collist, cellstyle)
@DTW_TB_TABLE(table, options, collist)
@DTW_TB_TABLE(table, options)
@DTW_TB_TABLE(table)
參數
資料類型 | 參數 | 使用 | 說明 |
---|---|---|---|
表格 | table | IN | 顯示為 HTML 表格的 巨集表格變數。 |
字串 | options | IN | 位於 TABLE 標籤中的表格屬性。
預設值示不使用屬性。有效的值包括:
|
字串 | collist | IN | 使用在 HTML 表格中 之 table 的欄號碼。 預設值是使用所有的欄。 |
字串 | cellstyle | IN | HTML 樣式元素的列示,例如 B 和 I, 是圍繞在每個 TD 標籤旁的文字。預設值是不使用樣式標籤。 |
整數 | link_u | IN | 在包含使用來建立 HTML 鏈結之 URL 的 table 中的欄號碼。 您必需也在 collist 中 指定欄。 預設值是不產生 HTML 鏈結。 |
整數 | image_u | IN | 在包含使用來建立列入壓縮檔之 URL 的 table 中的欄號碼。 您必需也在 collist 中 指定欄。 預設值是不產生壓縮檔標籤。 |
整數 | url_text | IN | 在 table 中包含顯示 HTML 鏈結或列入壓縮檔的 文字的欄號碼。 預設值是使用 URL 它本身。 |
字串 | url_style | IN | 指定在 url_text 中文字之 HTML 樣式元 素的列示。 預設值是不產生樣式標籤。 |
回覆碼
回覆碼 | 說明 |
---|---|
-1001 | 伺服器無法處理 Net.Data 的配置記憶體要求。 |
1001 | 輸入參數包含 NULL 值。 |
1003 | 函數呼叫上傳遞的參數數目不正確。 |
1004 | 函數呼叫上傳遞的參數必須是 Net.Data 巨集表變數,但卻是不同的變數類型。 |
1005 | 函數呼叫上傳遞的參數必須是字串變數,但卻是不同的變數類型。 |
1007 | 參數包含的值無效。 |
1008 | 參數超出表格界限。 |
範例
範例 1:使用邊框並使用 B (粗體) 與 I (斜體字) 來產生表格的 HTML 標籤
@DTW_TB_TABLE(Mytable,"BORDER","4 2 1","i","2","1","4","b")
結果:
<table border> <tr> <th>TITLE</th> <th>LINKURL</th> <th>IMAGEURL</th> <tr> <td><i>link1text</i></td> <td><a href="http://www.mycompany.com/link1.html"><b>link1text</b></a></td> <td><img src="http://www.mycompany.com/images/image1.gif" alt=""><b>link1text</b></td> </tr><tr> <td><i>link2text</i></td> <td><a href="http://www.mycompany.com/link2.html"><b>link2text</b></a></td> <td><img src="http://www.mycompany.com/images/image2.gif" alt=""><b>link2text</b></td> </tr><tr> <td><i>link3text</i></td> <td><a href="http://www.mycompany.com/link3.html"><b>link3text</b></a></td> <td><img src="http://www.mycompany.com/images/image3.gif" alt=""><b>link3text</b></td> </tr></table>