CharBufferString.CharAt (METH) ¶ METHOD CharAt : BYTE This method returns the character at a specified position. It should be only used to iterate through a string and must not be called for positions after the trailing 0 character. Attention! For instances storing a WSTRING: Valid values are only returned if the character at the given position is an ASCII character InOut: Scope Name Type Comment Return CharAt BYTE Input iPosition INT The position (relative to 1) within the string to check
CharBufferString.CharAtEquals (METH) ¶ METHOD CharAtEquals : BOOL This method tests, if the character at a specified position within the string is equal to a given character. InOut: Scope Name Type Comment Return CharAtEquals BOOL Input iPosition INT The position (relative to 1) within the string to check stChar STRING(1) The character to search
CharBufferString.Characters (PROP) ¶ PROPERTY Characters : CharBufferPtr The buffer, where the string is stored this instance represents
CharBufferString.Copy (METH) ¶ METHOD Copy : DINT Does a strcpy from the source string cbsSource into our instance. Will return the number of copied characters including the terminating ‘0’ or “0” InOut: Scope Name Type Return Copy DINT Input cbsSource REFERENCE TO CharBufferString
CharBufferString.CopyFrom (METH) ¶ METHOD CopyFrom Does a strcpy from the source string cbsSource into our instance at given positions and a given length. Note: No terminating 0 will be appended. InOut: Scope Name Type Comment Input rcbsSource REFERENCE TO CharBufferString The source string, where the characters will be copied from diSourceOffset DINT The 1 relative offset within the source string, where the copying will start diTargetOffset DINT The 1 relative offset within the source string, where the copying to will start diCountCharacters DINT The number of characters to copy
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