Cicode Programming Reference > Cicode Function Categories > String Functions | Cicode

String Functions

String functions allow you to manipulate strings in various ways. You can extract characters or substrings from a string, convert strings into other data types, format strings, search for strings, and perform other operations.

Following are functions relating to Strings:

CharToStr

Converts an ASCII code into a string.

HexToStr

Converts a number into a hexadecimal string.

IntToStr

Converts an integer variable into a string.

PathToStr

Converts a Citect SCADA path into a string.

RealToStr

Converts a floating-point variable into a string.

StrCalcWidth

Retrieves the pixel width of a string using a particular font.

StrClean

Removes control characters from a string.

StrEndsWith Verifies whether the given string ends with a specific string.

StrFill

Fills a string with characters.

StrFormat

Formats a variable into a string.

StrGetChar

Gets a single character from a string or buffer.

StrLeft

Gets the left-hand characters from a string.

StrLength

Gets the length of a string.

StrListContainsItem Checks whether the string passed is an item contained in a delimited list of strings.

StrLower

Converts a string to lower-case.

StrMid

Gets characters from the middle of a string.

StrPad

Pads a string to the required length.

StrRight

Gets the right-hand characters from a string.

StrSearch

Searches for a string within a string.

StrSetChar

Sets a single character into string or buffer.

StrSplit Checks whether the string passed is an item contained in a delimited list of strings.
StrToBool Converts a string value to a Boolean value.

StrToChar

Converts a string to an ASCII code.

StrToDate

Converts a string into a date variable.

StrToFmt

Converts a string into format fields.

StrToGrp

Converts a string into a group.

StrToHex

Converts a hexadecimal string into an integer.

StrToInt

Converts a string into an integer variable.

StrToLines

Converts a string into lines of limited length.

StrToLocalText

Converts a string from Native language to Local language.

StrToPeriod

Converts a string into a (time) period.

StrToReal

Converts a string into a floating-point variable.

StrToTime

Converts a string into a time variable.

StrToValue

Converts a string into a floating-point variable.

StrTrim

Trims spaces from a string.

StrTruncFont

Returns the truncated string using a particular font (specified by name) or the specified number of characters.

StrTruncFontHnd

Returns the truncated string using a particular font (specified by font number) or the specified number of characters.

StrTruncFontTooltip Returns a truncated string with ellipsis, and sets an AN with a tooltip containing the complete string if a truncation occurs.

StrUpper

Converts a string to upper-case.

StrWord

Gets a word from a string.

See Also

Published June 2018