CharBufferString.CopyFrom2 (METH) ¶ METHOD CopyFrom2 : DINT Does a strcpy from the source string cbsSource into our instance at given position. The return value is the number of characters copied (excluding the 0 character at the end. InOut: Scope Name Type Comment Return CopyFrom2 DINT Input rsSource REFERENCE TO STRING(255) The source string, where the characters will be copied from diTargetOffset DINT The 1 relative offset within the source string, where the copying to will start
CharBufferString.Delete (METH) ¶ METHOD Delete : DINT Deletes <iLength> characters our string, beginning at the <iPosition>-th character position. <iPosition> = 1 is the first character. InOut: Scope Name Type Return Delete DINT Input iLength INT iPosition INT
CharBufferString.FB_Exit (METH) ¶ METHOD FB_Exit : BOOL InOut: Scope Name Type Return FB_Exit BOOL Input bInCopyCode BOOL
CharBufferString.FB_Init (METH) ¶ METHOD FB_Init : BOOL FB_Init method used for allocating the memory used for storing the string InOut: Scope Name Type Comment Return FB_Init BOOL Input bInitRetains BOOL bInCopyCode BOOL uiBufferSize UINT The size of the buffer (in bytes), where the string is stored. If this value is 0, no memory is allocated and the CharBufferPtr pointer has to be set by calling the Initialize method stringType __SYSTEM.TYPE_CLASS A __SYSTEM.TYPE_CLASS value indicating type of the string
CharBufferString.Find (METH) ¶ METHOD Find : INT Searches for a substring within our string InOut: Scope Name Type Return Find INT Input cbsToSearchFor REFERENCE TO CharBufferString
CharBufferString.FindFrom (METH) ¶ METHOD FindFrom : INT Searches for a substring within our string, starting at a specified position InOut: Scope Name Type Comment Return FindFrom INT Input cbsToSearchFor REFERENCE TO CharBufferString iSearchStart UINT a position relative to 1, where the search starts
CharBufferString.FromString (METH) ¶ METHOD FromString : BOOL Converts an IEC string value into the internally used representation. The result of the method indicates, whether the processing was successful or not (e.g. CharBufferString.m_Type <> ANY_STRING). If the internally used buffer is not large enough the result is TRUE and only the used buffer size – 1 will be copied. InOut: Scope Name Type Comment Return FromString BOOL Input stString STRING(255) The string to convert @IECCodeConverter_Type: String
CharBufferString.Init (METH) ¶ METHOD Init : BOOL Init method used for using an already existing memory for storing the string InOut: Scope Name Type Comment Return Init BOOL Input pBuffer POINTER TO BYTE The pointer to the buffer containing the string uiBufferSize UINT The size of the buffer (in bytes), where the string is stored. If this value is 0, no memory is allocated and the CharBufferPtr pointer has to be set by calling the Initialize method stringType __SYSTEM.TYPE_CLASS A __SYSTEM.TYPE_CLASS value indicating type of the string
CharBufferString.Initialize (METH) ¶ METHOD Initialize : BOOL Method Initialize must be called in order to pass an already existing CharBufferPtr to this instance. In this case the buffer size is unknown and remains 0. This method can be used if the string is read only. InOut: Scope Name Type Comment Return Initialize BOOL Input cbpSource CharBufferPtr The buffer, where the string is stored this instance represents stringType __SYSTEM.TYPE_CLASS A __SYSTEM.TYPE_CLASS value indicating type of the string
StrDeleteW (FUN) ¶ FUNCTION StrDeleteW Deletes <iLength> characters of <pwst>, beginning at the <iPosition>-th character position. <iPosition> = 1 is the first character. InOut: Scope Name Type Input pwd POINTER TO WORD iLength INT iPosition INT