I’ve started this new thread because it relates to two other threads and should perhaps be considered on its own.
At Possible problem with assign( function? - #4 by michael, Dave Thompson diagnosed an incompatibility between the assign(
and import(
functions.
Arraymultisort() is a discussion on a limitation of the arraymultisort
statement.
Looking at how I might amend that statement, I noticed that it includes an almost identical assign(
and import(
function combination that works fine.
The one that failed was:
ArrayFilter Array1,Temp,";",assign(?(val(import())<val(MaxMin),import()
+" "+str(seq()),MaxMin),"MaxMin")
The one that works is:
ArrayFilter CopyArray,TempArray,RowSep,
assign(?(length(import())>ElementLength,length(import()),ElementLength),"ElementLength")
The difference is that one uses the val(
function, the other uses the length(
function. This may help Jim to diagnose the source of the problem.