Difference between revisions of "RemoveStringArrayElement"

From scripting
Jump to: navigation, search
(Created page with " global proc string[] RemoveStringArrayElement(string $CurArr[],int $RemoveIndex) { string $PR[]; int $PRCounter = 0; for ($p=0;$p<size($CurArr);$p++) { if ($p!=$Remo...")
 
(No difference)

Latest revision as of 19:52, 24 April 2017

global proc string[] RemoveStringArrayElement(string $CurArr[],int $RemoveIndex) {
	string $PR[];
	int $PRCounter = 0;
	for ($p=0;$p<size($CurArr);$p++) {
		if ($p!=$RemoveIndex) {
			$PR[$PRCounter] = $CurArr[$p];
			$PRCounter++;
		}
	}
  	return $PR;
}


More information on string arrays, read pages 30-31 in YSYT.