Am 13.03.2013 10:53 schrieb "Xiangrong Fang" :
>
> 2013/3/13 Sven Barth
>>
>> Am 13.03.2013 10:08 schrieb "Xiangrong Fang" :
>> > 2) After SetLength(myarray, 0), is myarray nil or pointing to some
invalid address?
>>
>> It will be Nil. An equivalent alternative would be:
>>
>> MyArray := Nil;
>
>
2013/3/13 Sven Barth
> Am 13.03.2013 10:08 schrieb "Xiangrong Fang" :
> > 2) After SetLength(myarray, 0), is myarray nil or pointing to some
> invalid address?
>
> It will be Nil. An equivalent alternative would be:
>
> MyArray := Nil;
>
Sorry, I didn't see this reply just now... You mean, by
Am 13.03.2013 10:08 schrieb "Xiangrong Fang" :
> 2) After SetLength(myarray, 0), is myarray nil or pointing to some
invalid address?
It will be Nil. An equivalent alternative would be:
MyArray := Nil;
Regards,
Sven
___
fpc-pascal maillist - fpc-pasca