Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2006.04.30;
Скачать: 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 вся ветка

Текущий архив: 2006.04.30;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.026 c
6-1137093319
Volf_555
2006-01-12 22:15
2006.04.30
Как сохранить интернет-страницу из TWebBrowser с рисунками?


15-1144262820
Hover
2006-04-05 22:47
2006.04.30
Программы для PDA


6-1137220195
dreamse
2006-01-14 09:29
2006.04.30
2 сетевые карточки , UDP запрос 255,255,255,255 уходит не туда


1-1142956952
Volf_555
2006-03-21 19:02
2006.04.30
Как определить handle компонента, который находится на панели?!!!


15-1144667387
малдер
2006-04-10 15:09
2006.04.30
WMR -> Visa