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