Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
LOAD
SubField(String, ';') AS [Strings]
INLINE [
String
;abc;def;ghi;
];
Perhaps just use a preceding load to check if the length of the outcome string is greater than zero?
Load Strings
Where Len(Strings)>0;
LOAD
SubField(String, ';') AS [Strings]
INLINE [
String
;abc;def;ghi;
];
Should also be fairly easy to check if the leftmost string is the separator and if so, use Mid(String,2,9999) instead of the full string.
Perhaps just use a preceding load to check if the length of the outcome string is greater than zero?
Load Strings
Where Len(Strings)>0;
LOAD
SubField(String, ';') AS [Strings]
INLINE [
String
;abc;def;ghi;
];
Should also be fairly easy to check if the leftmost string is the separator and if so, use Mid(String,2,9999) instead of the full string.
@Or you are right, the preceding load with where clause does remove it. I did try, and obviously failed somehow.
Then PurgeChar() and KeepChar() don't remove the problem, because the blank value doesn't exist until the SubField() has done its job.
LEN() appears to be the only way to remove unwanted value. Wonder if the SubField function could be improved to not generate an empty value, or at least mention it in the Help page for SubField.
Thanks @Or for the answer 🙂