Вниз
Скачать: CL | DM;

кусок текста   Найти похожие ветки 

← →
Golik   (2006-04-15 00:28) [0]

Доброго времени.
подскажите - из таблицы Access в переменную считываю из поля определенное значение например "44УК3234234" как мне запонить в  другую переменную последние 4 символа этого текста ?


← →
EvS ©   (2006-04-15 01:30) [1]

Unit

System

Category

string handling routines

Delphi syntax:

function Copy(S; Index, Count: Integer): string;
function Copy(S; Index, Count: Integer): array;

Description

S is an expression of a string or dynamic-array type. Index and Count are integer-type expressions. Copy returns a substring or subarray containing Count characters or elements starting at S[Index]. The substring or subarray is a unique copy (that is, it does not share memory with S, although if the elements of the array are pointers or objects, these are not copied as well.)

If Index is larger than the length of S, Copy returns an empty string or array.

If Count specifies more characters or array elements than are available, only the characters or elements from S[Index] to the end of S are returned.

Note: When S is a dynamic array, you can omit the Index and Count parameters and Copy copies the entire array.


← →
Ksenom ©   (2006-04-15 18:02) [2]

y:="44УК3234234";
s:=Copy(y,Length(y)-3,4);
или около того...



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.034 c
15-1144487703
Der Nechk@ssoff
2006-04-08 13:15
2006.04.30
Разрешение надо?


6-1137276570
Spirit111
2006-01-15 01:09
2006.04.30
WSAAccept и условная функция lpfnCondition : LPCONDITIONPROC


15-1144322510
Vlad Oshin
2006-04-06 15:21
2006.04.30
Правописание3.5 килограмма или 3.5 килограммов?


2-1145001367
Dust
2006-04-14 11:56
2006.04.30
Рекурсивный обход папок,,, или не рекурсивный...


3-1141905472
Xmen
2006-03-09 14:57
2006.04.30
Запрос к базе.




   Наверх