variables - Informix 4gl Split a String or Char -
i wanted know informix 4gl command split variable such as
lv_var = variable01;variable02
into
lv_var01 = variable01 lv_var02 = variable02
is there in informix 4gl can this.
in python do
lv_array = lv_var.split(";")
and use variables array
there isn't standard function that. 1 major problem returning array. i'd write c function job, in i4gl, like:
function nth_split_field(str, c, n) define str varchar(255) define c char(1) define n integer ...code find nth field delimited c in str... end function
Comments
Post a Comment