2016-02-27 0:49 GMT-03:00 Dmitry Boyarintsev <skalogryz.li...@gmail.com>:

> On Fri, Feb 26, 2016 at 10:38 PM, Mazola Winstrol <mazofei...@gmail.com>
> wrote:
>
>> In the code bellow, the generic type TNullableTyple is implemented (and
>> incomplete for now).
>>
> How to reset TNullableType to Null value? HasValue seems to be read-only.
>

In the last version, there is two ways:

var
   NullInt: TNullable<Integer>;
begin
   NullInt.Clear; // Method 1
   NullInt := nil; // Method 2
end;
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to