LEFTB

Grąžina pirmą DBCS teksto ženklą.

tip

Ši funkcija pasiekiama nuo „LibreOffice“ 4.2 versijos.


Sintaksė

LEFTB("tekstas" [; baitų skaičius])

Tekstas – tekstas, kuriame reikia nustatyti nepilną žodį.

Baitai (papildomas) – nurodomas ženklų, kuriuos norite ištraukti, skaičius baitais. Jei šis parametras nenurodytas, funkcija grąžina vieną ženklą.

Pavyzdys

=LEFTB("中国";1) returns " " (1 byte is only half a DBCS character and a space character is returned instead).

=LEFTB("中国";2) returns "中" (2 bytes constitute one complete DBCS character).

=LEFTB("中国";3) returns "中 " (3 bytes constitute one DBCS character and a half; the last character returned is therefore a space character).

=LEFTB("中国";4) returns "中国" (4 bytes constitute two complete DBCS characters).

=LEFTB("office";3) returns "off" (3 non-DBCS characters each consisting of 1 byte).

Paremkite mus!