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.

WordWrap.dll

2 posts in DataWindow Last posting was on 2008-08-26 17:06:56.0Z
mary.dichtl Posted on 2008-08-18 21:44:07.0Z
Sender: 71cb.48a9db88.1804289383@sybase.com
From: mary.dichtl@motorola.com
Newsgroups: sybase.public.powerbuilder.datawindow
Subject: WordWrap.dll
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <48a9ed26.75ab.1681692777@sybase.com>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="-=_forums-1-dub48a9ed26"
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 18 Aug 2008 14:44:07 -0700
X-Trace: forums-1-dub 1219095847 10.22.241.41 (18 Aug 2008 14:44:07 -0700)
X-Original-Trace: 18 Aug 2008 14:44:07 -0700, 10.22.241.41
Lines: 13485
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87580
Article PK: 416838

We've been happily using the WordWrap.dll in our PB 9.0
application for a few years, but we've just encountered a
new issue with it.

When the long string of text is being parsed into a series
of smaller strings, if a date (mm/dd/yy) occurs at the end
of one of the smaller strings, it does not stay together
correctly.

For example, if the date is "3/18/08", "3" appears at the
end of the first line and "/18/08" appears at the beginning
of the next line.

If the date is "03/18/08", the "03" disappears altogether at
the end of the first line and "/18/08" appears at the
beginning of the next line.

We discovered that if the date is entered with hyphens, such
as "03-18-08", the date is kept together correctly. We
don't want to have to tell our users that they have to enter
dates using "mm-dd-yy". Why shouldn't dates like "mm/dd/yy"
work?

Any suggestions on how to fix this OR is it possible to get
the source code of the WordWrap.dll so that we could fix
this ourselves?


"John Olson [Team Sybase]" <john.olson Posted on 2008-08-26 17:06:56.0Z
From: "John Olson [Team Sybase]" <john.olson@nospam_teamsybase.com>
Newsgroups: sybase.public.powerbuilder.datawindow
References: <48a9ed26.75ab.1681692777@sybase.com>
Subject: Re: WordWrap.dll
Lines: 44
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3138
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138
NNTP-Posting-Host: vip152.sybase.com
X-Original-NNTP-Posting-Host: vip152.sybase.com
Message-ID: <48b43830@forums-1-dub>
Date: 26 Aug 2008 10:06:56 -0700
X-Trace: forums-1-dub 1219770416 10.22.241.152 (26 Aug 2008 10:06:56 -0700)
X-Original-Trace: 26 Aug 2008 10:06:56 -0700, vip152.sybase.com
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.powerbuilder.datawindow:87640
Article PK: 416895

Mary,

I'd guess that's a bug in the wordwrap.dll code. That dll is from 1996 so
while the sample code has been updated with new PB releases that code has
not. It doesn't appear that the source is available. If you want to possibly
fix the problem you could try to contact the code contributor and see if
he'll give you the source. His info is in the wordwrap.doc file that comes
in the zip.

Regards,
John

<mary.dichtl@motorola.com> wrote in message
news:48a9ed26.75ab.1681692777@sybase.com...
> We've been happily using the WordWrap.dll in our PB 9.0
> application for a few years, but we've just encountered a
> new issue with it.
>
> When the long string of text is being parsed into a series
> of smaller strings, if a date (mm/dd/yy) occurs at the end
> of one of the smaller strings, it does not stay together
> correctly.
>
> For example, if the date is "3/18/08", "3" appears at the
> end of the first line and "/18/08" appears at the beginning
> of the next line.
>
> If the date is "03/18/08", the "03" disappears altogether at
> the end of the first line and "/18/08" appears at the
> beginning of the next line.
>
> We discovered that if the date is entered with hyphens, such
> as "03-18-08", the date is kept together correctly. We
> don't want to have to tell our users that they have to enter
> dates using "mm-dd-yy". Why shouldn't dates like "mm/dd/yy"
> work?
>
> Any suggestions on how to fix this OR is it possible to get
> the source code of the WordWrap.dll so that we could fix
> this ourselves?
>