--- a/branches/develop/mqttsparkplug/mqttsparkplug/Sparkplug™ MQTT edge and host/Function Blocks/FB_MetricFileTransfer/FB_MetricFileTransfer/ReturnFileName/svnobj
+++ b/branches/develop/mqttsparkplug/mqttsparkplug/Sparkplug™ MQTT edge and host/Function Blocks/FB_MetricFileTransfer/FB_MetricFileTransfer/ReturnFileName/svnobj
@@ -1,26 +1,33 @@
-Gx_l•	!0…jüo$Ý÷3ÓIIÈ}System.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
-longTagText
(PT := ADR(FileName);6l := stu.StrLenW(FileName);SLASH_CNT := 0;(FOR pos := 1 TO l DOJ	IF pt^ = GC_sparkplug.FW_SLASH THEN H        SLASH_CNT := SLASH_CNT + 1;     END_IF;"    PT := PT + 1;END_FOR;RRightMostAfterLastSlash := l - SLASH_CNT;¢ReturnFileName := STRING_TO_WSTRING( RIGHT( FileName, RightMostAfterLastSlash ));InterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94}NMETHOD PRIVATE ReturnFileName : WSTRINGVAR_INPUTœ    FileName : T_MaxString; // File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/)END_VARVAR *    SLASH_CNT : UINT;!    l: DINT;"2	pt : POINTER TO WSTRING;#	pos: DINT;$F    RightMostAfterLastSlash : DINT;ÐÐÐEÐÐ	
-­'ÚÐ-
ÐÐ	
-­(ÚÐ-ÐÐ	
-­)ÚÐ-ÐÐ	
-­*ÚÐ-ÐÐ	
-­+ÚÐ-ÐÐ	
-­.ÚÐ-ÐÐ	
-­-ÚÐ-ÐÐ	
-­,ÚÐ-ÐÐ	
-­ÚÐ-ÐÐ	
-­2ÚÐ-ÐÐ	
-­1ÚÐ-ÐÐ	
-­0ÚÐ-ÐÐEÐÐ	
-­ÚÐ-ÐÐ	
-­ÚÐ-ÐÐ	
-­	ÚÐ-ÐÐ	
-­ÚÐ-ÐÐ	
+Gx_lÂ!0…jüo©	‡½·ñÄÖ¹ÚSystem.StringL{f8a58466-d7f6-439f-bbb8-d4600e41d099}ImplementationL{3b83b776-fb25-43b8-99f2-3c507c9143fc}TextDocumentL{f3878285-8e4f-490b-bb1b-9acbb7eb04db}TextLinesL{a5de0b0b-1cb5-4913-ac21-9d70293ec00d}	Id
+longTagText
(PT := ADR(FileName);–l := stu.StrLenW(pstData := ADR(FileName)); //get length of filename & pathSLASH_CNT := 0;(FOR pos := 1 TO l DON    IF pt^ = GC_sparkplug.FW_SLASH THENF        SLASH_CNT := SLASH_CNT + 1;    END_IF;"    PT := PT + 1;END_FOR;RRightMostAfterLastSlash := l - SLASH_CNT;|Stu.StrMidW(pwst := ADR(FileName), // assume pointer to bufferd            uiInputBufferSize := SIZEOF(FileName),˜            iLength := TO_INT((SIZEOF(FileName) - RightMostAfterLastSlash)),r            iPosition := TO_INT(RightMostAfterLastSlash),\            pwstResult := ADR(ReturnFileName),t            uiResultBufferSize := SIZEOF(ReturnFileName));InterfaceL{a9ed5b7e-75c5-4651-af16-d2c27e98cb94} NMETHOD PRIVATE ReturnFileName : WSTRING!VAR_INPUT"œ    FileName : T_MaxString; // File name can contain an absolute or relative path to the file. Path entries must be separated with a Slash (/)#END_VAR$VAR%*    SLASH_CNT : UINT;&    l: DINT;'2	pt : POINTER TO WSTRING;(	pos: DINT;)F    RightMostAfterLastSlash : DINT;ÐÐÐEÐÐ	
+­4ÚÐ-
ÐÐ	
+­5ÚÐ-ÐÐ	
+­6ÚÐ-ÐÐ	
+­7ÚÐ-ÐÐ	
+­8ÚÐ-ÐÐ	
+­9ÚÐ-ÐÐ	
+­:ÚÐ-ÐÐ	
+­;ÚÐ-ÐÐ	
+­<ÚÐ-ÐÐ	
+­=ÚÐ-ÐÐ	
+­>ÚÐ-ÐÐ	
+­?ÚÐ-ÐÐ	
+­@ÚÐ-ÐÐ	
+­AÚÐ-ÐÐ	
+­BÚÐ-ÐÐ	
+­CÚÐ-ÐÐ	
+­DÚÐ-ÐÐ	
+­EÚÐ-ÐÐ	
+­0ÚÐ-ÐÐEÐÐ	
+­ÚÐ- ÐÐ	
+­ÚÐ-!ÐÐ	
+­	ÚÐ-"ÐÐ	
+­ÚÐ-#ÐÐ	
 ­
-ÚÐ-ÐÐ	
-­&ÚÐ- ÐÐ	
-­"ÚÐ-!ÐÐ	
-­#ÚÐ-"ÐÐ	
-­!ÚÐ-#ÐÐ	
-­3ÚÐ-$ÐÐ	
-­ÚÐ-
\ No newline at end of file
+ÚÐ-$ÐÐ	
+­&ÚÐ-%ÐÐ	
+­"ÚÐ-&ÐÐ	
+­#ÚÐ-'ÐÐ	
+­!ÚÐ-(ÐÐ	
+­3ÚÐ-)ÐÐ	
+­ÚÐ-#
\ No newline at end of file