[r261]: / 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ýëÓ#diª >)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+37,POULevel-L{8e575c5b-1d37-49c6-941b-5c0ec7874787}.Standard/ ChildObjectGuids08System.Collections.ArrayList1,AddAttributeSubsequent2boolÐÐ-ÐÐ	E
ÐÐ
­ÚÐ-ÐÐ
­#ÚÐ-ÐÐ
­"ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­	ÚÐ-ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­%ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-Ð !Ð	E

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