Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Problem with NULL in D2009
Fri, Mar 19 2010 6:22 AMPermanent Link

Pat

Hi all,

Following code is OK in D6 but gives an error in D2009 compiler:

tblMytable.Edit;
tblMytableEmployeeID.AsVariant := Null;
tblMytable.Post;

The error message is:

E2003 Undeclared identifier: 'Null'

how do I get it working?

Regards,
Pat
Fri, Mar 19 2010 11:06 AMPermanent Link

Terry Swiers

Pat,

> E2003 Undeclared identifier: 'Null'
>
> how do I get it working?

Add Variants to your uses clause.

--

---------------------------------------
 Terry Swiers
 Millennium Software, Inc.
 http://www.1000years.com
 http://www.atrex.com

 The Atrex 13 beta is now available.
 Visit http://v13beta.atrex.com for more information.

Atrex Electronic Support Options:
 Atrex Knowledgebase: http://www.atrex.com/atrexkb.asp
 Email: mailto:support@atrex.com
 Newsgroup: news://news.1000years.com/millennium.atrex
 Fax: 1-925-829-1851
 Phone: 1-925-828-5892 (M-F, 9a-5p Pacific)
 ---------------------------------------

Fri, Mar 19 2010 12:53 PMPermanent Link

Rita Tipton


"Terry Swiers" <millennium@1000years.com> wrote in message
news:36008B63-E31E-4917-8D01-B4EBEBB3CBA6@news.elevatesoft.com...
>
> Add Variants to your uses clause.
>

The thing I liked most about Delphi when I 1st
got it was the users clause it seemed to put most
of that stuff in for you. After struggling with C
coming from XBASE stuff it made life easier
for me much nicer than the H files in C.
I would think the Variants should be added once
its mentioned in code.
Msybe time for a clone called HelpPhi to do it all.
Rita

Fri, Mar 19 2010 4:45 PMPermanent Link

Pat

>Add Variants to your uses clause.

Thanks Terry  Wink
Image