string ls_套件id="1,2,3"
string 套件id数组[]
if isnumber(ls_套件id) then
cnt=1
套件id数组[1]=ls_套件id
else
cnt=gf_拆分字串(ls_套件id, ",", 套件id数组)
end if
以上代码执行结果:
cnt=1, 套件id数组[1]="1,2,3"
另外, long("1,2,3")的返回值是123
string ls_套件id="1,2,3"
string 套件id数组[]
if isnumber(ls_套件id) then
cnt=1
套件id数组[1]=ls_套件id
else
cnt=gf_拆分字串(ls_套件id, ",", 套件id数组)
end if
以上代码执行结果:
cnt=1, 套件id数组[1]="1,2,3"
另外, long("1,2,3")的返回值是123