Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2003.05.29;
Скачать: CL | DM;

Вниз

присвоение переменным значения Null   Найти похожие ветки 

 
Serguar ©   (2003-05-20 10:01) [0]

Привет Всем! Разбирая некоторые исходники (не мои), часто сталкиваюсь с присваением некоторым переменным значения Null. Сначало я думал что это опечатка при переносе из C++ и заменял значение на 0. Процесс довольно нудный. Но такая фигня что то очень часто всетречается. В разделе описания констант Null не присутствует. Поэтому я пришел к выводу, что константу Null можно использовать если что нибудь поправить в настройках Delphi. Может быть кто нибудь в курсе каким образом это делается.


 
Digitman ©   (2003-05-20 10:13) [1]

Null в OP - далеко не то же самое, что и Null в C/C++

фрагмент хэлпа :

Null represents the null Variant.

Unit

System

Category

variant support routines

var Null: Variant;

Description

Use Null to indicate unknown or missing data. Null can be assigned to variables in an application that must contain a null value. Assigning Null to a Variant variable does not cause an error, and Null can be returned from any function with a Variant return value.

Assigning Null to a variable of any type other than Variant causes either a compile-time error or raises an EVariantError exception. For example, in the following code the assignment of v, the Null Variant, to Variant q is successful; whereas the conversion of Variant v, which is now Null, to the integer return type of the Test function, raises an exception.

Там же есть примеры использования



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

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

Наверх




Память: 0.46 MB
Время: 0.013 c
1-94859
Senator
2003-05-20 10:29
2003.05.29
TImage


14-95048
Falkton
2003-05-09 03:58
2003.05.29
Записи


1-94827
Mr. xXx
2003-05-19 15:09
2003.05.29
Why it causes a mistake :


1-94846
Pirat
2003-05-19 23:24
2003.05.29
Как повесится на 40 полях ?? :)


1-94896
cult
2003-05-16 12:24
2003.05.29
Глупый вопрос про ActiveX