setChar

<html> <head> <meta http-equiv="Content-Language" content="zh-cn"> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>char * item</title> </head> <body> <p><font color="#0000FF">char</font><font color="darkorange"> </font>*<font color="darkorange"> </font><font color="#00FF00"> item</font>.<font color="#FF8C00">setChar</font>(<font color="blue">int</font> 索引, <font color="blue">char</font>*(<font color="blue">int</font>) 字段, <font color="blue">char</font>* 新数据)</p> <p><strong>函数功能:</strong></p> <p><font color="darkgreen">设置一个字符串道具数据</font></p> <p><strong>参数说明:</strong></p> <table border="1" width="37%" id="table1"> <tr> <td width="151">索引</td> <td width="155">[整型]</td> <td>道具的索引号</td> </tr> <tr> <td width="151">字段</td> <td width="155">[整型]或[字符型]</td> <td>获取数据的位置编号</td> </tr> <tr> <td width="151">新数据</td> <td width="155">[字符串]</td> <td>为字段设置一个新的字符串</td> </tr> </table> <p><strong>返回值:</strong></p> <p>返回 字符串数据</a></p> <p><strong>使用例子:</strong></p> <p><font color="#008000">--把名字字段设置为</font>测试中物品<br> name =&nbsp;<font color="#00FF00">item</font>.<font color="#FF8C00">setChar</font>(itemindex, &quot;名字&quot;, &quot;测试中物品&quot;)</p> <p><strong>参数说明:</strong></p> <p>字段可以使用数字编号0~?,也可使用中文字段,建议使用中文,提供的中文字段如下:</p> <p>名字<br> 昵称<br> 主人<br> 账号<br> 家族<br> 导师帐号<br> 导师名字<br> 爱人账号<br> 爱人名字<br> 称号<br> 彩票</p> </body> </html>