Tbl toStr » 历史记录 » 版本 5
yangdefeng, 2022-05-23 10:02
1 | 3 | yangdefeng | h4. _*%{color:green}tbl_toStr%*_ |
---|---|---|---|
2 | 4 | yangdefeng | |
3 | 将数据表转换为字符串,存入变量 |
||
4 | 1 | yangdefeng | |
5 | 5 | yangdefeng | 标签:命令定义tbl_toStr |
6 | 1 | yangdefeng | |
7 | *格式* |
||
8 | |命令名 |参数1 |参数2 | |
||
9 | 5 | yangdefeng | |tbl_toStr |表名 |返回变量 | |
10 | 1 | yangdefeng | |
11 | *说明* |
||
12 | * 参数1: 待输出的表名 |
||
13 | |||
14 | * 参数2: 返回变量,存储参数1指定的表内容。 |
||
15 | |||
16 | - |
||
17 | - |
||
18 | |||
19 | h4. *%{color:deepskyblue}特戒引擎脚本示例:%* |
||
20 | |||
21 | - |
||
22 | - |
||
23 | |||
24 | bq. [<notextile>@</notextile>main] |
||
25 | #say |
||
26 | \ \<创建表/<notextile>@</notextile>创建> |
||
27 | \ \<查看表内容/<notextile>@</notextile>查看> |
||
28 | |
||
29 | [<notextile>@</notextile>创建] |
||
30 | #act |
||
31 | 2 | yangdefeng | [[tbl_create_cross]] tb_cross沙城捐献 关键字 奖励名称 捐献额度 领取状态 |
32 | 1 | yangdefeng | [[tbl_add]] tb_cross沙城捐献 1 超级富豪 1000金币 1 |
33 | tbl_add tb_cross沙城捐献 2 大富豪 900金币 3 |
||
34 | goto <notextile>@</notextile>存盘同步 |
||
35 | |
||
36 | [<notextile>@</notextile>查看] |
||
37 | #if |
||
38 | [[tbl_exist]] tb_cross沙城捐献 |
||
39 | #act |
||
40 | 2 | yangdefeng | *{color:green}tbl_toStr* tb_cross沙城捐献 s0 |
41 | 1 | yangdefeng | [[messageBox]] <$str(s0)> |
42 | #elseAct |
||
43 | messageBox 表不存在,请先创建表 |
||
44 | |
||
45 | [<notextile>@</notextile>存盘同步] |
||
46 | #act |
||
47 | [[tbl_save]] tb_cross沙城捐献 |
||
48 | messageBox 保存完毕 |