[r397]: / trunk / Library / POUs / Functions / F_RemoveInstancePathAndProjectNameFromTestInstancePath / svnobj  Maximize  Restore  History

Download this file

6 lines (5 with data), 4.3 kB

Gx_lŽ!0…jüoýCľ5iadŚ`System.StringL{6f9dac99-8de1-4efc-8465-68ac443b7d08}SpecialFuncL{0db3d7bb-cde0-4416-9a7b-ce49a0124323}NoneImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocument	L{f3878285-8e4f-490b-bb1b-9acbb7eb04db}
TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}Id
longTagTextt(* Add the '.' character to the project name for search *)"GetCurProjInfo();˛ProjectNameWithDot := CONCAT(STR1 := GetCurProjInfo.PROJECT_INFO.stProject, STR2 := '.');ş(* FIND the character position of the beginning of the first occurence of the project name *)şCharacterPositionOfProjectName := FIND(STR1 := TestInstancePath, STR2 := ProjectNameWithDot);TIF CharacterPositionOfProjectName > 0 THENn    TestInstancePath := DELETE(STR := TestInstancePath,”								LEN := CharacterPositionOfProjectName-1 + LEN(ProjectNameWithDot),$								POS := 1);END_IFÔ(* Check if the project name happens to be the same as namespace, and in that case, remove that as well *)€CharacterPositionOfProjectName := FIND(STR1 := TestInstancePath,J									STR2 := ProjectNameWithDot);¦								LEN := CharacterPositionOfProjectName - 1 + LEN(STR := ProjectNameWithDot),–F_RemoveInstancePathAndProjectNameFromTestInstancePath := TestInstancePath; Interface!L{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}"šFUNCTION F_RemoveInstancePathAndProjectNameFromTestInstancePath : T_MaxString#VAR_INPUT$F    TestInstancePath : T_MaxString;%END_VAR&VAR'R    CharacterPositionOfProjectName : INT;(J    ProjectNameWithDot : T_MaxString;)B	GetCurProjInfo : GetCurProjInfo;*"UniqueIdGenerator+38,POULevel-L{8e575c5b-1d37-49c6-941b-5c0ec7874787}.Standard/ ChildObjectGuids08System.Collections.ArrayList1,AddAttributeSubsequent2boolĐĐ-ĐĐ	E
ĐĐ
­ÚĐ-ĐĐ
­#ÚĐ-ĐĐ
­"ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­	ÚĐ-ĐĐ
­
ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­
ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­%ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-ĐĐ
­ÚĐ-Đ !Đ	E

ĐĐ
­ÚĐ-"ĐĐ
­ÚĐ-#ĐĐ
­ÚĐ-$ĐĐ
­ÚĐ-%ĐĐ
­ÚĐ-&ĐĐ
­ÚĐ-'ĐĐ
­ ÚĐ-(ĐĐ
­&ÚĐ-)ĐĐ
­!ÚĐ-%ĐĐ
­ÚĐ-Đ*-+Đ,--./0Đ12­