07-17-2009, 06:42 AM
Ok, i got it.
So, be function A, accepting either str or array as parameters, each optional
function [str&STR] [ARRAY(str)&ARR]
it test is STR or a line of ARR is empty
1) How to share the same code with different types of parameters
if (@ [ARRAY(str)&ARR]) or ( [str&STR] @)
Coll = ARR or STR
foreach item Coll
2)Any cast conversion?
str(ARR[i]) as
int i=3
str s=str(i)
So, be function A, accepting either str or array as parameters, each optional
function [str&STR] [ARRAY(str)&ARR]
it test is STR or a line of ARR is empty
1) How to share the same code with different types of parameters
if (@ [ARRAY(str)&ARR]) or ( [str&STR] @)
Coll = ARR or STR
foreach item Coll
2)Any cast conversion?
str(ARR[i]) as
int i=3
str s=str(i)