Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Clear time field dbisam
Sat, Jun 16 2018 6:04 PMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi All,

I can assign value to a time field using strtotime(value) but how can I
clear the value again, so it's null. strtotime('') does not work,
neither astime := 0, does anyone have a suggestion? Thanks.

Regards,

Hüseyin

Sun, Jun 17 2018 9:29 AMPermanent Link

Uli Becker

Did you try MyField.clear?

Uli
Sun, Jun 17 2018 10:58 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Hi Uli,

I knew it existed in pascal, but never thought i could use it here also,
but it works SmileMaybe you have an idea how i solve my next issue also Smile
When time field is blank in dataset and I will show value with tedit, it
shows 01:00 when using timetostr(field), how can I check if this field
contains null and just assign null to string value?

Thanks in advance.
Hüseyin

Den 17-06-2018 kl. 15:29 skrev Uli Becker:
> Did you try MyField.clear?
>
> Uli
>
Mon, Jun 18 2018 3:15 AMPermanent Link

Huseyin Aliz

myBiss ApS

Avatar

Fixed it by checking for field.asinteger = 0.

Thanks,

Hüseyin


Den 17-06-2018 kl. 16:58 skrev Hüseyin Aliz:
> Hi Uli,
>
> I knew it existed in pascal, but never thought i could use it here
> also, but it works SmileMaybe you have an idea how i solve my next issue
> also Smile
> When time field is blank in dataset and I will show value with tedit,
> it shows 01:00 when using timetostr(field), how can I check if this
> field contains null and just assign null to string value?
>
> Thanks in advance.
> Hüseyin
>
> Den 17-06-2018 kl. 15:29 skrev Uli Becker:
>> Did you try MyField.clear?
>>
>> Uli
>>
>
Image