PC Review


Reply
Thread Tools Rate Thread

How can I clean this string ?

 
 
=?Utf-8?B?U3VyeWE=?=
Guest
Posts: n/a
 
      21st Feb 2004
I'm using Microsoft.Project.OLEDB.9.0 provider with a datareader to read data from a .mpp file (Microsoft Project plan) from ASP.NET
The problem is All the STRING values, the datareader returns, do not end properly.
I mean, suppose the value its suposed to return is "surya".. But instead it returns "sury
The length of this string is around 256 characters... meaning the string is not ending properly and has some characters appended to it
strTemp = drRecords("TaskName").tostrin
I've tried strTemp = String.copy (drRecords("TaskName").tostring).... still it gives the same problem

How can I clean this string
Please help
Thanks
Sury

 
Reply With Quote
 
 
 
 
Morozov Max
Guest
Posts: n/a
 
      21st Feb 2004
If it returns trailing spaces, you can use string.Trim()

--
----------
WBR, Morozov Max
"Surya" <(E-Mail Removed)> сообщил/сообщила в новостях
следующее: news:CCE18146-0678-4D30-BB1B-(E-Mail Removed)...
> I'm using Microsoft.Project.OLEDB.9.0 provider with a datareader to read

data from a .mpp file (Microsoft Project plan) from ASP.NET.
> The problem is All the STRING values, the datareader returns, do not end

properly.
> I mean, suppose the value its suposed to return is "surya".. But instead

it returns "surya
> The length of this string is around 256 characters... meaning the string

is not ending properly and has some characters appended to it.
> strTemp = drRecords("TaskName").tostring
> I've tried strTemp = String.copy (drRecords("TaskName").tostring)....

still it gives the same problem.
>
> How can I clean this string ?
> Please help.
> Thanks,
> Surya
>



 
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
Clean file transfered over net to other clean machine infectable in route? see.my.sig.4.addr@nowhere.com.invalid Anti-Virus 16 30th May 2005 01:26 AM
Clean up a string =?Utf-8?B?cXVhcnR6?= Microsoft Excel Programming 2 12th Jan 2005 03:40 PM
Norton Clean Sweep doesn't clean history William Babcock Windows XP Help 2 23rd Jul 2004 04:23 AM
Clean install not really clean? very little free drive space left =?Utf-8?B?SmVuQw==?= Windows XP Performance 2 16th Jan 2004 08:36 AM
Clean Setup - want to wipe drive clean and reformat Lee Prevost Windows XP Setup 3 13th Oct 2003 01:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:21 PM.