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 ('').
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved.
|
Post feedback to the Indy Docs Newsgroup.
|