I'm still not seeing your problem, either on the Compact Framework or the
Full Framework. Can you please post all of your code and some sample input?
Mike Boilen
Developer
NET Compact Framework
This posting is provided "AS IS" with no warranties, and confers no rights.
http://www.gotdotnet.com/team/netcf/FAQ.aspx
--------------------
| From: "Samwise1130" <
[email protected]>
| References: <
[email protected]>
<#
[email protected]>
<
[email protected]>
| Subject: Re: string.replace on 2003, SP1
| Date: Tue, 23 Sep 2003 09:46:48 -0500
| Lines: 82
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <#
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 24-116-42-8.cpe.cableone.net 24.116.42.8
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:34207
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| The code looks like this:
|
| dim sReportText as string
| sReportText = "There is no report content to display..."
| txtReportData.Text = sReportText.Replace(vbLf,vbCrLf)
|
|
| txtReportData.Text now contains a string of spaces with a length of 69.
| The reason for doing the replace is that sometimes the value of
sReportText
| will contain linefeed characters--in order to properly display it on the
pda
| (as it was displayed on the pc) we need to do the replace.
|
| Note, that I've found a work around to this problem by substituting the
line
| above with the following:
|
| txtReportData.Text = sReportText.Replace(CChar(vbLf), CChar(vbCrLf))
|
| Please let me know if you need more information or details.
|
|
| | > I'm not seeing this behavior. Can you please post your code that
exhibits
| > this problem?
| >
| > Mike Boilen
| > Developer
| > NET Compact Framework
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
http://www.gotdotnet.com/team/netcf/FAQ.aspx
| >
| > --------------------
| > | From: "Samwise1130" <
[email protected]>
| > | References: <
[email protected]>
| > | Subject: Re: string.replace on 2003, SP1
| > | Date: Mon, 22 Sep 2003 08:27:53 -0500
| > | Lines: 26
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <#
[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: 24-116-42-8.cpe.cableone.net 24.116.42.8
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:34089
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | I should have mentioned that this is on a Dell device running 2003,
SP1
| > |
| > |
| > | | > | > I'm experiencing the following:
| > | >
| > | > Dim sTest as string = "THIS IS A TEST STRING"
| > | >
| > | > tb1.text = sTest.Replace(vblf, vbcrlf)
| > | >
| > | > when this code is executed, tb1.text returns an empty string with a
| > length
| > | > of 64.
| > | >
| > | > If however, I modify the code slightly and instead do:
| > | >
| > | > tb1.text = sTest.Replace(cchar(vblf),cchar(vbcrlf))
| > | >
| > | > everything works as expected and the textbox is correctly populated.
| > | >
| > | > --
| > | >
| > | >
| > | >
| > |
| > |
| > |
| >
|
|
|