Chilkat HOME ASP Visual Basic VB.NET C# Visual C++ C MFC Delphi FoxPro Java Perl PHP Python Ruby SQL Server VBScript
|
Remove Chars from the Middle of a String
How to remove a span of characters from a string. CkString str; // Append a Unicode string... str.appendU(L"0123456789"); // Remove a chunk from the middle of the string. int startCharPos = 4; // 0 is the position of the first char. int numChars = 3; str.removeChunk(startCharPos,numChars); // getString() returns an ANSI string. printf("%s\n",str.getString()); // Prints: // 0123789
|
Need a specific example? Send a request to support@chilkatsoft.com
© 2000-2008 Chilkat Software, Inc. All Rights Reserved.