String.format???
Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance
- From: "Anders M" <it99ama@xxxxx>
- Date: Mon, 25 Apr 2005 12:20:54 +0200
Hi!
I'd like to format a string as follows:
hi my name is anders and I'm programming
to:
hi my name...
The formatting should shorten the text to at most 10 chars and add "..." in
the end.
Is that possible with String.Format?
/Anders
.
Relevant Pages
- Re: Is this good use of Properties?
... >> nor in the business of programming as a backing of design-heuristic ... >>>Assuming some class external to string needed to know it's length How would you get it? ... >>>I need to send it across the pipe to another process (I don't control the format).. ... (microsoft.public.dotnet.languages.csharp) - Re: Is this good use of Properties?
... > nor in the business of programming as a backing of design-heuristic ... >>Assuming some class external to string needed to know it's length How would you get it? ... >>I need to send it across the pipe to another process (I don't control the format).. ... (microsoft.public.dotnet.languages.csharp) - Re: date Conversion Program in Assembly
... > API that will return either the Date or Time string formats. ... That's not the format. ... "specific" programming nonsense that comes back to bite you in the butt ... (alt.lang.asm) - Re: Date format detection
... Specifies the locale for which the date string is to be formatted. ... date format for this locale. ... the system default-date format for the specified locale. ... be enclosed within single quotation marks in the date format picture. ... (borland.public.delphi.thirdpartytools.general) - Re: Date format detection
... > Specifies the locale for which the date string is to be formatted. ... > date format for this locale. ... > the system default-date format for the specified locale. ... > be enclosed within single quotation marks in the date format picture. ... (borland.public.delphi.thirdpartytools.general) |
|