Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2006.04.30;
Скачать: [xml.tar.bz2];

Вниз

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

 
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;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.008 c
15-1144421627
Сатир
2006-04-07 18:53
2006.04.30
Конфликт двух клиент-серверных приложений


2-1144761104
Сергей И.
2006-04-11 17:11
2006.04.30
Подскажите почему?


15-1144161185
Немой
2006-04-04 18:33
2006.04.30
Вот вам и высшее образование


15-1144571134
Ega23
2006-04-09 12:25
2006.04.30
С Днём рождения! 9 апреля


2-1144915019
apl
2006-04-13 11:56
2006.04.30
FastReport 3





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский