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.

Date editing in TMaskEdit

Xailer professional forum in English
Responder
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Date editing in TMaskEdit

Mensaje por Oleg »

Dear developers!
I use TMaskEdit to edit dates in my project (see attached project).
When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
TMaskEdit value
(select all and press DELETE or select Clear from context menu), it becomes
totally empty.
After this I have problems to enter new date (just try to type 8 digits).
When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
empty with '/' delimiters
( / / ). In this case I have no problems to enter new date.
How can I fix this different behavior?
Regards, Oleg


Attached files test75.zip (1.8 KB)Â
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

Date editing in TMaskEdit

Mensaje por Ingo JH »

Dear developers,
I have the same problem. The control doesn't accept the '.' (decimal point).
i.e. with the date 02.10.2008
1. input 02 ->'02'
2. input the point //nothing
input 1 then '02.0'
Regards
Ingo
"Oleg" <info@cluster.samara.ru> schrieb im Newsbeitrag
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>
Ingo JH
Mensajes: 358
Registrado: Lun Dic 10, 2007 5:10 pm

Date editing in TMaskEdit

Mensaje por Ingo JH »

Dear developers,
I have the same problem. The control doesn't accept the '.' (decimal point).
i.e. with the date 02.10.2008
1. input 02 ->'02'
2. input the point //nothing
input 1 then '02.0'
Regards
Ingo
"Oleg" <info@cluster.samara.ru> schrieb im Newsbeitrag
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Date editing in TMaskEdit

Mensaje por Oleg »

Hi all!
I found that my problem can be worked around by this method
METHOD MaskEdit1Change( oSender ) CLASS TForm3
if empty(::oMaskEdit1:cText)
::oMaskEdit1:SetValue( ::oMaskEdit1:GetValue() )
endif
RETURN Nil
But I think that this problem must be fixed in Xailer's sources somehow.
Regards, Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

Date editing in TMaskEdit

Mensaje por Oleg »

Hi all!
I found that my problem can be worked around by this method
METHOD MaskEdit1Change( oSender ) CLASS TForm3
if empty(::oMaskEdit1:cText)
::oMaskEdit1:SetValue( ::oMaskEdit1:GetValue() )
endif
RETURN Nil
But I think that this problem must be fixed in Xailer's sources somehow.
Regards, Oleg
Avatar de Usuario
ignacio
Site Admin
Mensajes: 9440
Registrado: Lun Abr 06, 2015 8:00 pm
Ubicación: Madrid, Spain
Contactar:

Date editing in TMaskEdit

Mensaje por ignacio »

Oleg,
Fixed. It will be available on next Xailer release.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>
Ignacio Ortiz de Zúñiga
[OZ Software]
https://www.ozs.es
--
[Equipo de Xailer / Xailer team]
https://www.xailer.com
NoName
Mensajes: 531
Registrado: Vie Feb 03, 2006 7:27 pm

Date editing in TMaskEdit

Mensaje por NoName »

Oleg,
Fixed. It will be available on next Xailer release.
Regards,
--
Ignacio Ortiz de Zúñiga
[Soporte Xailer]
[Xailer support]
"Oleg" <info@cluster.samara.ru> escribió en el mensaje
news:48e4c7e3$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Dear developers!
>
> I use TMaskEdit to edit dates in my project (see attached project).
> When I set 'SET DATE GERMAN' (it is usual format in Russia) and clear
> TMaskEdit value
> (select all and press DELETE or select Clear from context menu), it
> becomes totally empty.
> After this I have problems to enter new date (just try to type 8 digits).
>
> When I do not set 'SET DATE GERMAN' and clear TMaskEdit value, it becomes
> empty with '/' delimiters
> ( / / ). In this case I have no problems to enter new date.
>
> How can I fix this different behavior?
>
> Regards, Oleg
>
>
Responder