IPB

> String types (string: reserved word)
Чат
Форум
Загрузка...
 

Language:
Русский
English

 String types     (string: reserved word)


A string type variable is a sequence of characters with a dynamic length, and a constant maximum size between 1 and 255.

Syntax

   string [ constant ]
    OR
   string

Remarks

A string type declared without a maximum size is given the size 255.

String constants are written in quotes; for example:

  - 'Turbo'
  - 'That''s all'

Two consecutive single quotes are used to indicate a single quote in a string.

These operators can be used with string type values:

  +    =    <>    <    >    <=    >=

The standard function Length returns the dynamic length of a string.

Example

 { String Type Definitions }
   const
     LineLen = 79;
   type
     Name = string[25];
     Line = string[LineLen];

See Also

 
 К началу страницы 
Тэги: string
 

Код для вставки: :: :: :: ГОСТ ::
Поделиться: //
 



-
Хостинг предоставлен компанией "Веб Сервис Центр" при поддержке компании "ДокЛаб"