Re: " Assigned" function

Giganews Newsgroups
Subject: Re: " Assigned" function
Posted by:  Ignacio Vazquez (ivazquezATorioncommunications.com)
Date: Fri, 28 Nov 2003

"Robert Lockwood" <rnlockwood…@SPAMattglobal.net> wrote in message
34156CD73E88E240rnlockwood…@SPAMattglobal.net...
> In FTPDemo the author uses (in Delphi) an if statement:
> if(Assigned(IdFTP1->Directory) & <snip> )
>
> Can anyone tell me what this "Assigned" is and what the C++ Builder
> equivalent might be?

Assigned returns False if the value is nil, True otherwise. The equivalent
in C would be !=NULL.

Cheers,
  Ignacio

Replies

In response to

" Assigned" function posted by Robert Lockwood on Fri, 28 Nov 2003