Created
February 25, 2021 17:54
-
-
Save edsonmsantos/ae3205b5a2072e5c899e29f88be258ba to your computer and use it in GitHub Desktop.
[splitstring] Separador de string para delphi anterior ao unicode, transforma uma string em um array de strings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function TForm1.SplitString(Texto: string; Delimitador: char; ValueIfEmpty: string = ''): TStrings; | |
var | |
Strings: TStringList; | |
begin | |
Strings := TStringList.Create; | |
Strings.Delimiter := Delimitador; | |
Strings.DelimitedText := Texto; | |
Result := Strings; | |
end; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment