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

Download this file

5 lines (5 with data), 4.4 kB

Gx_l!0…jüo¾
K^9ú9Eò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 *)ÄProjectNameWithDot := CONCAT(STR1 := TwinCAT_SystemInfoVarList._AppInfo.ProjectName, 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),d                                        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,                                                     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;("UniqueIdGenerator)33*POULevel+L{8e575c5b-1d37-49c6-941b-5c0ec7874787},Standard- ChildObjectGuids.8System.Collections.ArrayList/,AddAttributeSubsequent0boolÐÐ-ÐÐ	E
ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­	ÚÐ-ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­
ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-ÐÐ
­ÚÐ-Ð Ð	E
	ÐÐ
­ÚÐ-!ÐÐ
­ÚÐ-"ÐÐ
­ÚÐ-#ÐÐ
­ÚÐ-$ÐÐ
­ÚÐ-%ÐÐ
­ÚÐ-&ÐÐ
­ ÚÐ-'ÐÐ
­!ÚÐ-$ÐÐ
­ÚÐ-Ð(-)Ð*+-,-.Ð/0­