Board index » delphi » How do I assign a null value to Paradox Date Field using Delphi

How do I assign a null value to Paradox Date Field using Delphi

I want to allow the user to blank out a date field in a static table.

Example:
    tableNameFieldName.value := null

        gives an EVariantError exception

 

Re:How do I assign a null value to Paradox Date Field using Delphi


Quote
On Fri, 22 Jan 1999 14:48:24 -0500, "Scott" <sco...@advret.com> wrote:
>I want to allow the user to blank out a date field in a static table.

>Example:
>    tableNameFieldName.value := null

>        gives an EVariantError exception

Use the TField.Clear method.

  tableNameFieldName.Clear;

//////////////////////////////////////////////////////////////////////////
Steve Koterski                       "For people who like peace and quiet:
Technical Publications               a phoneless cord."
INPRISE Corporation                                             -- Unknown
http://www.inprise.com/delphi

Re:How do I assign a null value to Paradox Date Field using Delphi


TableNameFieldName.Clear;

will assign null to the field.

Bill

--
Bill Todd
(Sorry but TeamB cannot answer questions received via email)
(Remove nospam from my email address to contact me for any other reason)

Other Threads