GetLibVersionNumber (FUN) ¶ FUNCTION GetLibVersionNumber : DWORD InOut: Scope Name Type Return GetLibVersionNumber DWORD
IsLibReleased (FUN) ¶ FUNCTION IsLibReleased : BOOL InOut: Scope Name Type Return IsLibReleased BOOL
ERROR (ENUM) ¶ TYPE ERROR : Attributes: qualified_only InOut: Name Initial NO_ERROR WRONG_PARAMETER 2 NOT_FOUND INVALID_ENCODING
Functions ¶ CONCAT (Function) COUNT (Function) DELETE (Function) FIND (Function) INSERT (Function) LEFT (Function) LEN (Function) MID (Function) REPLACE (Function) RIGHT (Function)
CONCAT (FUN) ¶ FUNCTION CONCAT : IString Concatenates two strings | See: SBD.IBuilder | The multiple nesting of CONCAT calls can often be replaced much faster via multiple calls to IBuilder.WriteIString. InOut: Scope Name Type Comment Return CONCAT IString Input itfHead IString The first part of the new string itfTail IString The second part of the new string itfResource IString The resource that this function is working on. It will contain the result after the function call and will also be returned by this function so it can be used in nested calls. Output eErrorID ERROR
COUNT (FUN) ¶ FUNCTION COUNT : UDINT Returns the number of runes of a string See function LEN for calculating the number of bytes InOut: Scope Name Type Comment Return COUNT UDINT Input itfString IString String to be analyzed Output eErrorID ERROR
DELETE (FUN) ¶ FUNCTION DELETE : IString Deletes a number of runes from a string Returns 0 in case of eErrorID <> ERROR.NO_ERROR InOut: Scope Name Type Comment Return DELETE IString Input itfString IString The original String, will not be modified udiCount UDINT Length of the partial string to be deleted, number of runes udiStart UDINT Position in itfString after which the deletion starts Runes counted from left Must be greater than 0 (See RIGHT , if the right part of a string is needed) itfResource IString The resource that this function is working on. It will contain the result after the function call and will also be returned by this function so it can be used in nested calls. Output eErrorID ERROR
FIND (FUN) ¶ FUNCTION FIND : UDINT Searches for the position of a partial string within a string. The find is index based, to search from first position udiStart := 0 Return value also returns index of the found rune, e.g. for found first rune it returns 0 InOut: Scope Name Type Initial Comment Return FIND UDINT Input itfString IString String within which itfPartial is searched itfPartial IString String whose position is searched in itfString udiStart UDINT 0 The index position within itfString from where the search starts Output eErrorID ERROR
INSERT (FUN) ¶ FUNCTION INSERT : IString Inserts a partial string into another string at a specific position Returns 0 in case of eErrorID <> ERROR.NO_ERROR InOut: Scope Name Type Comment Return INSERT IString Input itfString IString String into which itfPartial is inserted itfPartial IString String to be inserted into itfString udiStart UDINT Insert position. 0 : Inserts before the first rune 1 : Inserts after the first rune. itfResource IString The resource that this function is working on. It will contain the result after the function call and will also be returned by this function so it can be used in nested calls. Output eErrorID ERROR
LEFT (FUN) ¶ FUNCTION LEFT : IString Returns a specific number of runes of a string, starting from left Returns 0 in case of eErrorID <> ERROR.NO_ERROR See IStringRepresentation ☛ ToIString(itfResource, 0, TO_LINT(udiCount-1)) InOut: Scope Name Type Comment Return LEFT IString Input itfString IString String to be analyzed udiCount UDINT Number of runes itfResource IString The resource that this function is working on. It will contain the result after the function call and will also be returned by this function so it can be used in nested calls. Output eErrorID ERROR