Splits a string at the first occurrence of a delimiter.
procedure SplitString( const AStr: String; const AToken: String; var VLeft: String; var VRight: String );
Parameters |
Description |
AStr |
Value to be split. |
AToken |
delimiter used to split the intial value. |
VLeft |
portion of the split string prior to AToken. |
VRight |
portion of the split string after AToken. |
SplitString is a procedure used to separate the string value in AStr at the first occurrence of AToken in the value. When AStr contains the value in AToken, VLeft wil contain the part of AStr prior to AToken and VRight wil contain the part of AStr after AToken. If AToken does not occur in AStr, VLeft contains the value in AStr and VRight contains an empty string ('').
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |