Home  |  Delphi .net Home  |  System.Globalization.TextElementEnumerator  |  MoveNext Method
  
MoveNext  
Method  
Move to the next Text element in the String
TextElementEnumerator Class
System.Globalization NameSpace
CF1.  Function MoveNext : Boolean;
CF : Methods with this mark are Compact Framework Compatible
Description
The enumerator sets the current position (ElementIndex) to the next text element in the original string, returning true if this succeeded, or false if we moved past the last text element in the string.
Microsoft MSDN Links
System.Globalization
System.Globalization.TextElementEnumerator
 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 
 
 
A simple example
program Project1;
{$APPTYPE CONSOLE}

uses
  System.Globalization;

var
  enumerator : System.Globalization.TextElementEnumerator;
  myString   : String;
  myText     : String;

begin
  myString := 'Hello';

  enumerator := StringInfo.GetTextElementEnumerator(myString);

  while enumerator.MoveNext do
  begin
    myText := enumerator.GetTextElement;
    Console.WriteLine(myText);
  end;

  Console.ReadLine;
end.
   H
   e
   l
   l
   o
 
 
Delphi Programming Neil Moffatt 2002 - 2017. All rights reserved.  |  Contact the author