check

<html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>bool char</title> </head> <body> <p><font color="#0000FF">bool</font><font color="#FF8C00"> </font> <font color="#00FF00"> obj</font>.<font color="#FF8C00">check</font>(<font color="#0000FF">int </font>对象索引)</p> <p><strong>函数功能:</strong></p> <p><font color="#006400">判断该对象索引是否有效</font></p> <p><strong>参数说明:</strong></p> <table border="1" width="643" id="table1"> <tr> <td width="154">对象索引</td> <td width="152">[整型</td> <td width="315">一个对象索引</td> </tr> </table> <p><strong>返回值:</strong></p> <p>如果有效的话返回 1</a> ,否则 0</a></p> <p><strong>使用例子:</strong></p> <p><font color="darkgreen">--判断objindex索引是否有效<br> </font><font color="#0000FF">if</font> <font color="#00FF00"> obj</font>.<font color="#FF8C00">check</font>(objindex)== 1 <font color="#0000FF">then<br> &nbsp;&nbsp;&nbsp; print(</font>&quot;objindex对象是有效索引<font color="#0000FF">&quot;)<br> else<br> &nbsp;&nbsp;&nbsp; print(</font>&quot;objindex对象是无效索引<font color="#0000FF">&quot;)<br> end</font></p> <p><strong>参数说明:</strong></p> </body> </html>