Template:AskPlus E.8.5.0

From Vital Soft Wiki
Revision as of 20:05, 5 June 2019 by >Johno
Jump to: navigation, search

Enhancements:

  • Add new user exits:
  •  !mod(x, y) - Returns the remainder when x is divided by y
  •  !countval(str [, delim]) - Returns the number of values in the string delimited by the delim parm (default delim is comma)
  •  !concat(array [,start,end,step|delim|opt]) - Returns a delimited string with concatenated array elements
  • New user exit examples:
 !mod(17, 3) returns 2
 !mod(15, 4) returns 1
 !countval("abc;def;ghi", ";") will return 3
 !countval("abc,def,ghi,jkl") will return 4
 newreg x:10I1 = !index(@)
 !concat(x, "7,,-2|\|") returns "7|5|3|1"

Fixes:

  • Eliminate a possible overflow using !compress.
  • Fix a bug using sub-item syntax that extends over an array.