Recent

Author Topic: TZVDateTimePicker Test for NULL  (Read 2775 times)

jack

  • Full Member
  • ***
  • Posts: 107
TZVDateTimePicker Test for NULL
« on: October 08, 2012, 07:23:20 am »
I have a TZVDateTimePicker , If the date value is null other code that references the date blows up.

How can I test the date for null before I use it?

Zoran

  • Hero Member
  • *****
  • Posts: 1949
    • http://wiki.lazarus.freepascal.org/User:Zoran
Re: TZVDateTimePicker Test for NULL
« Reply #1 on: October 08, 2012, 07:56:01 am »
You can use
Code: [Select]
if not ZVDateTimePicker1.DateIsNull then ...
But please tell me what blows up? How?
Swan, ZX Spectrum emulator https://github.com/zoran-vucenovic/swan

 

TinyPortal © 2005-2018