PC Review


Reply
Thread Tools Rate Thread

Different behavior for 2002 and 2003 (string.replace())

 
 
Ofer B.
Guest
Posts: n/a
 
      22nd Sep 2003
I had a code that ran on PPC 2002, It is not ranning on PPC 2003

This is the code:

string key = GetDeviceID();
key = key.replace("-", "+");

on the 2002 it works fine, on the 2003 I got this string: "+++++++++++++++"

to solve this problem i use the same fanction but with char and not strings

key = key.replace('-', '+');

this is work fine on both, 2002, 2003.

ofer



 
Reply With Quote
 
 
 
 
Mike Boilen [MS]
Guest
Posts: n/a
 
      23rd Sep 2003
Can you please post the implementation of GetDeviceID?

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: "Ofer B." <(E-Mail Removed)>
| Subject: Different behavior for 2002 and 2003 (string.replace())
| Date: Mon, 22 Sep 2003 10:10:50 +0200
| Lines: 19
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.3790.0
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
| Message-ID: <#(E-Mail Removed)>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 62-90-161-166.barak.net.il 62.90.161.166
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:34063
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I had a code that ran on PPC 2002, It is not ranning on PPC 2003
|
| This is the code:
|
| string key = GetDeviceID();
| key = key.replace("-", "+");
|
| on the 2002 it works fine, on the 2003 I got this string:
"+++++++++++++++"
|
| to solve this problem i use the same fanction but with char and not
strings
|
| key = key.replace('-', '+');
|
| this is work fine on both, 2002, 2003.
|
| ofer
|
|
|
|

 
Reply With Quote
 
Ofer B.
Guest
Posts: n/a
 
      24th Sep 2003
This is the example from
http://samples.gotdotnet.com/quickst...pactFramework/

Ofer

"Mike Boilen [MS]" <(E-Mail Removed)> wrote in message
news:Uof#(E-Mail Removed)...
> Can you please post the implementation of GetDeviceID?
>
> 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: "Ofer B." <(E-Mail Removed)>
> | Subject: Different behavior for 2002 and 2003 (string.replace())
> | Date: Mon, 22 Sep 2003 10:10:50 +0200
> | Lines: 19
> | X-Priority: 3
> | X-MSMail-Priority: Normal
> | X-Newsreader: Microsoft Outlook Express 6.00.3790.0
> | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.0
> | Message-ID: <#(E-Mail Removed)>
> | Newsgroups: microsoft.public.dotnet.framework.compactframework
> | NNTP-Posting-Host: 62-90-161-166.barak.net.il 62.90.161.166
> | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
> | Xref: cpmsftngxa06.phx.gbl
> microsoft.public.dotnet.framework.compactframework:34063
> | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
> |
> | I had a code that ran on PPC 2002, It is not ranning on PPC 2003
> |
> | This is the code:
> |
> | string key = GetDeviceID();
> | key = key.replace("-", "+");
> |
> | on the 2002 it works fine, on the 2003 I got this string:
> "+++++++++++++++"
> |
> | to solve this problem i use the same fanction but with char and not
> strings
> |
> | key = key.replace('-', '+');
> |
> | this is work fine on both, 2002, 2003.
> |
> | ofer
> |
> |
> |
> |
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Why automatic replace does not work on 2002-2003 based 2003 mdb files? Tero Koskinen/DBS Microsoft Access 2 5th Jul 2007 12:05 PM
Search & Replace--Word 2002-2003 Joe McGuire Microsoft Word Document Management 11 5th Feb 2007 07:10 AM
.H, .CPP files, differences in linker behavior 2002 vs 2003 Tom McDermott Microsoft VC .NET 0 2nd Mar 2004 01:48 AM
MSDN Oct. 2003 replace Jan. 2002 Anony Microsoft Dot NET 2 24th Jan 2004 06:14 PM
string.replace on 2003, SP1 Samwise1130 Microsoft Dot NET Compact Framework 5 25th Sep 2003 02:59 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:01 PM.