GS1Parser icon indicating copy to clipboard operation
GS1Parser copied to clipboard

Excluding fnc1 seperator

Open pietklop opened this issue 8 years ago • 1 comments

Very useful code but i should exclude the fnc1 seperator character from the ai result.

I changed it like this: (added fnc1Correction)

            int fnc1Correction = 0;
            if (indexOfGroupTermination >= 0)
            {
                lenghtToRead = indexOfGroupTermination + 1;
                fnc1Correction = 1;
            }
            // get the data of the current AI till the group seperator
            result = data.Substring(index, lenghtToRead - fnc1Correction);

pietklop avatar Mar 14 '17 14:03 pietklop

Thanks, perfekt solution!

Lars-Roeser avatar Jul 13 '23 14:07 Lars-Roeser