Página 1 de 1

Browser and Picture

Publicado: Sab Dic 17, 2005 8:24 pm
por Giuseppe Bogetti
Hi,
In all my tables I have a field called SIGNAT 7 bytes long with keeps
packed the date and time of last disk write.
I've defined the OnGetData event to decode the contents in the form
dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
Now I would like to edit the field value so in the OnDataDblClick event
I've defined the following code
oSender:cPicture := "@R 99/99/9999 99:99:99"
oSender:nEditType := beGET
oSender:Edit()
I've also defined the OnEdit event to update the oGridEdit value with
the decoded string.
Then I've defined the OnPostEdit event to convert value to compressed form
and reset the picture.
oSender:cPicture := ""
oSender:nEditType := beNONE
Everything works except that after the first editing on the column it seems
that the OnGetData is never called again and that the picture is still
there because I see packed data formatted with the picture.
(Picture Signat2)
What am I doing wrong ?
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy
--

Browser and Picture

Publicado: Sab Dic 17, 2005 10:54 pm
por Giuseppe Bogetti
Il Sat, 17 Dec 2005 20:24:08 +0100, Giuseppe Bogetti ha scritto:
> Hi,
>
> In all my tables I have a field called SIGNAT 7 bytes long with keeps
> packed the date and time of last disk write.
>
> I've defined the OnGetData event to decode the contents in the form
> dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
>
> Now I would like to edit the field value so in the OnDataDblClick event
> I've defined the following code
>
> oSender:cPicture := "@R 99/99/9999 99:99:99"
> oSender:nEditType := beGET
> oSender:Edit()
>
> I've also defined the OnEdit event to update the oGridEdit value with
> the decoded string.
>
> Then I've defined the OnPostEdit event to convert value to compressed form
> and reset the picture.
>
> oSender:cPicture := ""
> oSender:nEditType := beNONE
>
> Everything works except that after the first editing on the column it seems
> that the OnGetData is never called again and that the picture is still
> there because I see packed data formatted with the picture.
> (Picture Signat2)
>
> What am I doing wrong ?
Never mind. I've been able to solve the problem using OnGetValue event.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy

Browser and Picture

Publicado: Sab Dic 17, 2005 10:54 pm
por Giuseppe Bogetti
Il Sat, 17 Dec 2005 20:24:08 +0100, Giuseppe Bogetti ha scritto:
> Hi,
>
> In all my tables I have a field called SIGNAT 7 bytes long with keeps
> packed the date and time of last disk write.
>
> I've defined the OnGetData event to decode the contents in the form
> dd/mm/yyyy hh:mm:ss and works OK. (Picture Signat1)
>
> Now I would like to edit the field value so in the OnDataDblClick event
> I've defined the following code
>
> oSender:cPicture := "@R 99/99/9999 99:99:99"
> oSender:nEditType := beGET
> oSender:Edit()
>
> I've also defined the OnEdit event to update the oGridEdit value with
> the decoded string.
>
> Then I've defined the OnPostEdit event to convert value to compressed form
> and reset the picture.
>
> oSender:cPicture := ""
> oSender:nEditType := beNONE
>
> Everything works except that after the first editing on the column it seems
> that the OnGetData is never called again and that the picture is still
> there because I see packed data formatted with the picture.
> (Picture Signat2)
>
> What am I doing wrong ?
Never mind. I've been able to solve the problem using OnGetValue event.
--
Best regards,
Giuseppe Bogetti
B.G. Soft
Cuneo - Italy