In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

TDBDatePicker lCheckbox

Xailer professional forum in English
Responder
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

TDBDatePicker lCheckbox

Mensaje por g.s.rogers »

Question:
The documentation states that if the property lCheckBox for TDBDatePicker is
..T., "the control includes a checkbox to indicate blank dates. The only way
to indicate a blank date in this control is using this property."
Ok, so if the property is set to true, a checkbox appears on the control. If
the checkbox remains unchecked, then the control is treated as a blank date.
If the checkbox is checked, then the control's value is considered to be a
valid date.
How can I programatically tell whether the user has checked the box?
TIA,
Gary S. Rogers
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TDBDatePicker lCheckbox

Mensaje por ignacio »

Gary,
When the property lCheckBox is set to true, a checkbox is shown in the
control.
When THAT checkbox is checked the property TDatePicker:dValue returns the
date value of the control, if not, it returns an empty date.
So, if TDatePicker:lCheckBox is set to true, you can be sure the checkbox
is cheked when TDatePicker:dValue returns a non empty value.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
news:49ef3fde$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Question:
>
> The documentation states that if the property lCheckBox for TDBDatePicker
> is .T., "the control includes a checkbox to indicate blank dates. The only
> way to indicate a blank date in this control is using this property."
>
> Ok, so if the property is set to true, a checkbox appears on the control.
> If the checkbox remains unchecked, then the control is treated as a blank
> date. If the checkbox is checked, then the control's value is considered
> to be a valid date.
>
> How can I programatically tell whether the user has checked the box?
>
> TIA,
> Gary S. Rogers
>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TDBDatePicker lCheckbox

Mensaje por ignacio »

Gary,
When the property lCheckBox is set to true, a checkbox is shown in the
control.
When THAT checkbox is checked the property TDatePicker:dValue returns the
date value of the control, if not, it returns an empty date.
So, if TDatePicker:lCheckBox is set to true, you can be sure the checkbox
is cheked when TDatePicker:dValue returns a non empty value.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
news:49ef3fde$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Question:
>
> The documentation states that if the property lCheckBox for TDBDatePicker
> is .T., "the control includes a checkbox to indicate blank dates. The only
> way to indicate a blank date in this control is using this property."
>
> Ok, so if the property is set to true, a checkbox appears on the control.
> If the checkbox remains unchecked, then the control is treated as a blank
> date. If the checkbox is checked, then the control's value is considered
> to be a valid date.
>
> How can I programatically tell whether the user has checked the box?
>
> TIA,
> Gary S. Rogers
>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

TDBDatePicker lCheckbox

Mensaje por g.s.rogers »

Ignacio,
Is it possible that when the checkbox is NOT checked, that the control could
show a blank date, rather than the current date? It is confusing to my users
to see a date there when in fact the value is empty.
Regards,
Gary
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:49ef63c8$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Gary,
>
> When the property lCheckBox is set to true, a checkbox is shown in the
> control.
>
> When THAT checkbox is checked the property TDatePicker:dValue returns the
> date value of the control, if not, it returns an empty date.
>
> So, if TDatePicker:lCheckBox is set to true, you can be sure the checkbox
> is cheked when TDatePicker:dValue returns a non empty value.
>
> Regards,
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
> news:49ef3fde$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Question:
>>
>> The documentation states that if the property lCheckBox for TDBDatePicker
>> is .T., "the control includes a checkbox to indicate blank dates. The
>> only way to indicate a blank date in this control is using this
>> property."
>>
>> Ok, so if the property is set to true, a checkbox appears on the control.
>> If the checkbox remains unchecked, then the control is treated as a blank
>> date. If the checkbox is checked, then the control's value is considered
>> to be a valid date.
>>
>> How can I programatically tell whether the user has checked the box?
>>
>> TIA,
>> Gary S. Rogers
>>
>>
>>
>
>
g.s.rogers
Mensajes: 202
Registrado: Dom Feb 17, 2008 3:35 am

TDBDatePicker lCheckbox

Mensaje por g.s.rogers »

Ignacio,
Is it possible that when the checkbox is NOT checked, that the control could
show a blank date, rather than the current date? It is confusing to my users
to see a date there when in fact the value is empty.
Regards,
Gary
"Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
news:49ef63c8$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
> Gary,
>
> When the property lCheckBox is set to true, a checkbox is shown in the
> control.
>
> When THAT checkbox is checked the property TDatePicker:dValue returns the
> date value of the control, if not, it returns an empty date.
>
> So, if TDatePicker:lCheckBox is set to true, you can be sure the checkbox
> is cheked when TDatePicker:dValue returns a non empty value.
>
> Regards,
> --
> Ignacio Ortiz de Zúñiga
> Xailer support / Soporte de Xailer
> http://www.xailer.com
> http://www.xailer.info
> "Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
> news:49ef3fde$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Question:
>>
>> The documentation states that if the property lCheckBox for TDBDatePicker
>> is .T., "the control includes a checkbox to indicate blank dates. The
>> only way to indicate a blank date in this control is using this
>> property."
>>
>> Ok, so if the property is set to true, a checkbox appears on the control.
>> If the checkbox remains unchecked, then the control is treated as a blank
>> date. If the checkbox is checked, then the control's value is considered
>> to be a valid date.
>>
>> How can I programatically tell whether the user has checked the box?
>>
>> TIA,
>> Gary S. Rogers
>>
>>
>>
>
>
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TDBDatePicker lCheckbox

Mensaje por ignacio »

Gary,
Use the TDateEdit control from the Aditional tab.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
news:[email=49f1f6eb@svctag-j7w3v3j....]49f1f6eb@svctag-j7w3v3j....[/email]
> Ignacio,
>
> Is it possible that when the checkbox is NOT checked, that the control
> could show a blank date, rather than the current date? It is confusing to
> my users to see a date there when in fact the value is empty.
>
> Regards,
> Gary
>
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
> news:49ef63c8$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Gary,
>>
>> When the property lCheckBox is set to true, a checkbox is shown in the
>> control.
>>
>> When THAT checkbox is checked the property TDatePicker:dValue returns the
>> date value of the control, if not, it returns an empty date.
>>
>> So, if TDatePicker:lCheckBox is set to true, you can be sure the
>> checkbox is cheked when TDatePicker:dValue returns a non empty value.
>>
>> Regards,
>> --
>> Ignacio Ortiz de Zúñiga
>> Xailer support / Soporte de Xailer
>> http://www.xailer.com
>> http://www.xailer.info
>> "Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
>> news:49ef3fde$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Question:
>>>
>>> The documentation states that if the property lCheckBox for
>>> TDBDatePicker is .T., "the control includes a checkbox to indicate blank
>>> dates. The only way to indicate a blank date in this control is using
>>> this property."
>>>
>>> Ok, so if the property is set to true, a checkbox appears on the
>>> control. If the checkbox remains unchecked, then the control is treated
>>> as a blank date. If the checkbox is checked, then the control's value is
>>> considered to be a valid date.
>>>
>>> How can I programatically tell whether the user has checked the box?
>>>
>>> TIA,
>>> Gary S. Rogers
>>>
>>>
>>>
>>
>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9469
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

TDBDatePicker lCheckbox

Mensaje por ignacio »

Gary,
Use the TDateEdit control from the Aditional tab.
Regards,
--
Ignacio Ortiz de Zúñiga
Xailer support / Soporte de Xailer
http://www.xailer.com
http://www.xailer.info
"Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
news:[email=49f1f6eb@svctag-j7w3v3j....]49f1f6eb@svctag-j7w3v3j....[/email]
> Ignacio,
>
> Is it possible that when the checkbox is NOT checked, that the control
> could show a blank date, rather than the current date? It is confusing to
> my users to see a date there when in fact the value is empty.
>
> Regards,
> Gary
>
>
> "Ignacio Ortiz de Zúñiga" <NoNameToAvoidSpam@xailer.com> wrote in message
> news:49ef63c8$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>> Gary,
>>
>> When the property lCheckBox is set to true, a checkbox is shown in the
>> control.
>>
>> When THAT checkbox is checked the property TDatePicker:dValue returns the
>> date value of the control, if not, it returns an empty date.
>>
>> So, if TDatePicker:lCheckBox is set to true, you can be sure the
>> checkbox is cheked when TDatePicker:dValue returns a non empty value.
>>
>> Regards,
>> --
>> Ignacio Ortiz de Zúñiga
>> Xailer support / Soporte de Xailer
>> http://www.xailer.com
>> http://www.xailer.info
>> "Gary S. Rogers" <g.s.rogers@att.net> escribió en el mensaje
>> news:49ef3fde$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
>>> Question:
>>>
>>> The documentation states that if the property lCheckBox for
>>> TDBDatePicker is .T., "the control includes a checkbox to indicate blank
>>> dates. The only way to indicate a blank date in this control is using
>>> this property."
>>>
>>> Ok, so if the property is set to true, a checkbox appears on the
>>> control. If the checkbox remains unchecked, then the control is treated
>>> as a blank date. If the checkbox is checked, then the control's value is
>>> considered to be a valid date.
>>>
>>> How can I programatically tell whether the user has checked the box?
>>>
>>> TIA,
>>> Gary S. Rogers
>>>
>>>
>>>
>>
>>
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
Responder