以下是引用琅拿度在2016-5-31 09:45:20的发言:
你不用管自由表放什么位置,他会自动产生在默认位置
这是自己生成的表:
* Create main cursor
Create Cursor chart_1 (shuju N(8,2), x轴坐标 c(15))
* Populate cursor with data each column with the sales amount for each x轴坐标
* this will have 12 rows, one for each x轴坐标
这是生成的表插入你想要插入的数据:
For i=Min(ca_len,12) To 1 Step -1
ic=Alltrim(Str(i))
Insert Into chart_1 Values(ca&ic,Iif(i=1,"本周"+Iif(yxca&ic=0,Chr(13)+Chr(10)+"(月未卖)",''),Alltrim(Str(i-1))+"周前"+Iif(yxca&ic=0,Chr(13)+Chr(10)+"(月未卖)",'')))
Endfor
上述表的代码有问题:找不到变量:ca_len
你不用管自由表放什么位置,他会自动产生在默认位置
这是自己生成的表:
* Create main cursor
Create Cursor chart_1 (shuju N(8,2), x轴坐标 c(15))
* Populate cursor with data each column with the sales amount for each x轴坐标
* this will have 12 rows, one for each x轴坐标
这是生成的表插入你想要插入的数据:
For i=Min(ca_len,12) To 1 Step -1
ic=Alltrim(Str(i))
Insert Into chart_1 Values(ca&ic,Iif(i=1,"本周"+Iif(yxca&ic=0,Chr(13)+Chr(10)+"(月未卖)",''),Alltrim(Str(i-1))+"周前"+Iif(yxca&ic=0,Chr(13)+Chr(10)+"(月未卖)",'')))
Endfor