13.9. STRING

About
Functions order

13.9.1. About STRING

13.9.2. STRING functions order

ADDSLASHES() Возвращает строку с символами слеш (\)
ALLTRIM() Удаляет ведущие и замыкающие пробелы в строке символов.
BETWEEN() Проверка значения
CSCOUNT() Возвращает количество заданных символов в строке.
DSTRTON() Преобразует строку c "double"-представлнием в clipper-число.
FSTRTON() Преобразует строку c "float"-представлнием в clipper-число.
FT_AT2() Find position of the nth occurrence of a substring
FT_BITCLR() Clear (reset) selected bit in a byte
FT_BITSET() Set selected bit in a byte
FT_BYTEAND() Perform bit-wise AND on two ASCII characters (bytes)
FT_BYTENEG() Perform bit-wise negation on an ASCII character
FT_BYTENOT() Perform bit-wise NOT on an ASCII character (byte)
FT_BYTEOR() Perform bit-wise OR on two ASCII characters (bytes)
FT_BYTEXOR() Perform bit-wise XOR on two ASCII characters (bytes)
FT_FINDITH() Find the "ith" occurrence of a substring within a string
FT_ISBIT() Test the status of an individual bit
FT_ISBITON() Determine the state of individual bits in a number
FT_METAPH() Convert a character string to MetaPhone format
FT_NOOCCUR() Find the number of times one string occurs in another
FT_PCHR() Convert printer control codes
GLOB() Проверка на соответствие строки регулярному выражению.
HASHNAME() Возвращает строку, из которой был получен хэш-код.
HASHSTR() Возвращает хэш-код строки.
LIKE() Проверка на соответствие строки простой маске.
SEARCH() Поиск подстроки в строке по регулярному выражению.
STR2VAR() Конвертировать uucode строку в исходные данные.
VAR2STR() Конвертировать данные в uucode строку.

13.9.2.20. Function FT_PCHR()

 FT_PCHR( <cString> )  ->  <cPrinterFormat>

13.9.2.20.3. Description

This function is useful for allowing the user to enter printer control codes in text (enclosed in double quotes), numeric, hexadecimal, or Epson commands preceded by a slash and returns the printer control code equivalent.

NOTES"

- Combinations of text, numbers, hex, and commands must be separated by commas ("A",27,&1B,/RESET). - Text must be enclosed in double quotes ("x"). - Hexadecimal must be preceded by an ampersand (&1B). - Epson commands, listed below, must be preceded by a forward slash (/RESET).

Epson commands: (slash commands are specific to the Epson)

Job Control:

/RESET or /INIT Reset or initialize the printer /BELL or /BEEP Cause the printer's speaker to beep (not HS) /CAN Clear print buffers (not MX) /SLOW Set low speed mode (not CR, HS, MX) /FAST Cancel low speed mode (not CR, HS, MX) /ONE Select Unidirectional mode /TWO Select Directional mode /ON Activate printer /OFF Turn off printer

/FF or /EJECT Form Feed

Page Control:

/1/6 Set 6 lines per inch /1/8 Set 8 lines per inch /SKIP Set Skip perforation ON /SKIPOFF Set Skip perforation OFF

Font Selection and Manipulation:

/ITALIC Select italic char. set (only FX86, EX, LX, no LQ-1500, SX) /GRAPHIC Select graphic char. set (only FX86, EX, LX, no LQ-1500, SX) /ROMAN Choose Roman font /SANS Choose Sans Serif font /DRAFT Choose draft /NLQ Choose near letter quality /PICA Choose 10 chars per inch /ELITE Choose 12 chars per inch /COND or /SI Choose 15 chars per inch /EMPH Turn emphasize on /EMPHOFF Turn emphasize off /SPANISH Select spanish international char set /USA Select USA international char set

13.9.2.25. Function SEARCH()

  SEARCH(<sPattern>, <sString>, [@aReg], [<nFrom>], [<nRange>]) 	--> TRUE || FALSE