[r57]: / trunk / library / FB_XmlControl / NextParameter / svnobj  Maximize  Restore  History

Download this file

17 lines (16 with data), 3.2 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
METHOD PUBLIC NextParameter : T_MaxString;
VAR_OUTPUT
    Parameter : T_MaxString;
END_VAR
VAR
(* find '=' char *)
IF iSelectStartPara < iSelectEnd AND iSelectEndPara < iSelectEnd THEN
	iSelectStartValue := Buffer.Find ( sSearchString := '"' , udiStartPos := iSelectEndPara );
     (* find '"' char *)
	Parameter := Buffer.Copy( udiStart := iSelectStartValue + 1, udiEnd := iSelectEndValue );
	iSelectStartPara := iSelectEndValue + 1 ;
ELSE 
     (* find '<' char *)
	Name := Buffer.Copy( udiStart := iSearchPos + 1, udiEnd := iSelectEndValue ); 
END_IF;
NextParameter := Name;