📄 of_add_worksheet.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Pb2xls developer's reference</title>
<link rel="STYLESHEET" href="style.css" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<!-- Reference header -->
<table width="100%" cellpadding=0 cellspacing=0>
<tr>
<td class=footer_text width=20%>Release 1.6<br>15 September 2004</td>
<td class=doc_header align="center">Developer's reference</td>
<td width=20% align="right">
<a class=hidden_link href="http://desta.com.ua/pb2xls/"><img src=pb2xls_logo.gif alt="PB2XLS for PowerBuilder" border=0></a></td>
</tr>
</table>
<hr>
<table cellspacing=0 cellpadding=0 class=path_table> <tr><td><a class=hidden_link href=reference.htm>Reference</a> > <a class=hidden_link href=n_xls_workbook_v97.htm>N_XLS_WORKBOOK_V97</a> > <a class=hidden_link href=of_add_worksheet.htm>of_add_worksheet</a></td></tr> </table>
<table width=100%><tr><td class=light_line></td></tr></table><p class=head1>
of_add_worksheet() method
</p>
<p class=txt>
Add new worksheet into workbook. You can specify the name of worksheet.
</p>
<p class=head2>Syntax</p>
<div class=padding_txt>
<table cellpadding=7><tr class=grey_box><td class=txt>
<i>workbook.</i><b>of_add_worksheet </b><i>( { worksheetname } )</i>
</td></tr></table></div>
<p class=head2>Parameters</p>
<div class=padding_txt>
<table cellpadding=3>
<tr class=grey_box><td class=txt><i>Worksheetname</i></td><td class=txt>A string or a blob (unicode) whose value is the name of the worksheet you want to create. Length of worksheetname should be less then 31 symbols and it cannot contain any of the following characters: , : * ? / \ </td></tr>
</table></div>
<div class=padding_txt> <p class=txt>
In addition, you cannot use the worksheetname for more than one worksheet </p></div>
<p class=head2>
Return value
</p>
<div class=padding_txt> <p class=txt>
n_xls_worksheet. Returns a reference to the worksheet object. If the worksheet couldn't be created, of_add_worksheet returns NULL.</p></div>
<p class=head2>
Examples
</p>
<pre>
<a class=hidden_link href=n_xls_worksheet.htm>n_xls_worksheet</a> sheet
sheet = book.<a class=hidden_link href=of_add_worksheet.htm>of_add_worksheet</a>( 'sheet 1' ) //create worksheet with name 'sheet 1'</pre>
<table border=0 width="100%" cellpadding=0 cellspacing=0>
<tr><td colspan=2 class=empty_line></td></tr>
<tr><td colspan=2 class=line></td></tr>
<tr>
<td class=footer_text align="left">© 2003, 2004 <a class=hidden_link href="http://desta.com.ua">Desta, Ltd.</a> All rights reserved.</td>
<td class=footer_text align="right">
<a class=hidden_link href="mailto:pb2xls_support@Desta.com.ua">SupportDesk</a></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -