Community
Participate
Working Groups
This EDT code function testCharacterLen() data string = "This is some random data"; size1, size2 int = -33; size1 = strLib.characterLen(data); Syslib.writeStdout(" size 1 " + size1); data += " "; size2 = strlib.characterLen(data); Syslib.writeStdout(" size 2 " + size2); if (size1 == size2) syslib.writestdout(" size1 == size2"); else syslib.writestdout(" size1 != size2 -- blanks are counted"); end end Gets this validation message: IWN.VAL.6619.e 11/24 tester - strlib.characterLen cannot be resolved.
You need to use the Strlib that is in package eglx.rbd. You can use: eglx.rbd.StrLib.characterLen(data), or simply add an explicit import: import eglx.rbd.StrLib; to the file. Alternatively, you could use the new string functions to do the same thing without using StrLib: data.trim().length()
This code works as is in build 201109191052
Closing this defect.