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.

Is there a mask for a dollar amount greater than zero?

2 posts in DataWindow Last posting was on 2009-10-29 21:47:16.0Z
crconti Posted on 2009-10-29 21:25:43.0Z
From: crconti <charlesrconti1@hotmail.com>
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: Is there a mask for a dollar amount greater than zero?
Date: Thu, 29 Oct 2009 14:25:43 -0700 (PDT)
Organization: http://groups.google.com
Lines: 4
Message-ID: <c6ac3f7a-d11b-442e-a47d-873ee6003d0a@o9g2000prg.googlegroups.com>
NNTP-Posting-Host: 168.240.9.4
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
X-Trace: posting.google.com 1256851543 9488 127.0.0.1 (29 Oct 2009 21:25:43 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 29 Oct 2009 21:25:43 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: o9g2000prg.googlegroups.com; posting-host=168.240.9.4; posting-account=39xsYgoAAAA874SbOHNnIRh0vvsnus4N
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
Path: forums-1-dub!forums-master!newssvr.sybase.com!news-sj-1.sprintlink.net!news-peer1.sprintlink.net!newsfeed.yul.equant.net!novia!news-out.readnews.com!news-xxxfer.readnews.com!postnews.google.com!o9g2000prg.googlegroups.com!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90185
Article PK: 409794

I am using PowerBuilder 10.5 and have a datawindow with dollar amount
fields. Currently the mask is ###,###,##0.00. Is there a mask I can
use so that negative numbers cannot be entered (prevent the negative
sign from being entered in the column)?


"Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel Posted on 2009-10-29 21:47:16.0Z
From: "Jerry Siegel [TeamSybase]" <jNOsSPAMsiegel@yahoo!.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <c6ac3f7a-d11b-442e-a47d-873ee6003d0a@o9g2000prg.googlegroups.com>
Subject: Re: Is there a mask for a dollar amount greater than zero?
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.5843
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <4aea0d64$1@forums-1-dub>
Date: 29 Oct 2009 13:47:16 -0800
X-Trace: forums-1-dub 1256852836 10.22.241.152 (29 Oct 2009 13:47:16 -0800)
X-Original-Trace: 29 Oct 2009 13:47:16 -0800, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:90186
Article PK: 409791

No, - (and +) are allowed in numeric positions. You could use a validation
expression, or for more immediate feedback use the EditChanged event and
check for a - sign.

--
Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement

"crconti" <charlesrconti1@hotmail.com> wrote in message
news:c6ac3f7a-d11b-442e-a47d-873ee6003d0a@o9g2000prg.googlegroups.com...
>I am using PowerBuilder 10.5 and have a datawindow with dollar amount
> fields. Currently the mask is ###,###,##0.00. Is there a mask I can
> use so that negative numbers cannot be entered (prevent the negative
> sign from being entered in the column)?