Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

datemask to empty or null (00/00/0000) in pbver10

2 posts in Objects Last posting was on 2005-10-29 22:20:32.0Z
Betty Sarber Posted on 2005-10-26 23:48:51.0Z
From: "Betty Sarber" <swinnovations@dc.rr.com>
Newsgroups: sybase.public.powerbuilder.objects
Subject: datemask to empty or null (00/00/0000) in pbver10
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: cpe-65-28-140-151.dc.res.rr.com
X-Original-NNTP-Posting-Host: cpe-65-28-140-151.dc.res.rr.com
Message-ID: <436015e3$1@forums-1-dub>
Date: 26 Oct 2005 16:48:51 -0700
X-Trace: forums-1-dub 1130370531 65.28.140.151 (26 Oct 2005 16:48:51 -0700)
X-Original-Trace: 26 Oct 2005 16:48:51 -0700, cpe-65-28-140-151.dc.res.rr.com
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8679
Article PK: 735897

How do I set a datemask to empty or null in pbver10?
I have an editmask object with the following properties
mask = mm/dd/yyyy
maskdatatype = datemask!

the application was migrated from pb7.0.3 and in the open event I set the
editmask.text = '00/00/0000' - it still works fine in pb7

in pb10 version 10.0.2 build 8035, the text gets set to '01/00/0000'

Any help will be gratefully appreciated!
Betty


Sanjiv Das [TeamSybase] Posted on 2005-10-29 22:20:32.0Z
From: "Sanjiv Das [TeamSybase]" <No-Spam-SDas_TeamSybase@HotMail.Com>
Newsgroups: sybase.public.powerbuilder.objects
References: <436015e3$1@forums-1-dub>
Subject: Re: datemask to empty or null (00/00/0000) in pbver10
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2670
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670
X-RFC2646: Format=Flowed; Response
NNTP-Posting-Host: ip68-5-212-68.oc.oc.cox.net
X-Original-NNTP-Posting-Host: ip68-5-212-68.oc.oc.cox.net
Message-ID: <4363f5b0$1@forums-1-dub>
Date: 29 Oct 2005 15:20:32 -0700
X-Trace: forums-1-dub 1130624432 68.5.212.68 (29 Oct 2005 15:20:32 -0700)
X-Original-Trace: 29 Oct 2005 15:20:32 -0700, ip68-5-212-68.oc.oc.cox.net
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.objects:8688
Article PK: 735903

If your editmask control is named em_1, use a script like this:

String ls_Tmp

SetNull ( ls_Tmp )

em_1.text = ls_Tmp

Sanjiv.

"Betty Sarber" <swinnovations@dc.rr.com> wrote in message
news:436015e3$1@forums-1-dub...
> How do I set a datemask to empty or null in pbver10?
> I have an editmask object with the following properties
> mask = mm/dd/yyyy
> maskdatatype = datemask!
>
> the application was migrated from pb7.0.3 and in the open event I set the
> editmask.text = '00/00/0000' - it still works fine in pb7
>
> in pb10 version 10.0.2 build 8035, the text gets set to '01/00/0000'
>
> Any help will be gratefully appreciated!
> Betty
>
>