added XML Debug String function and fix file selector

This commit is contained in:
René Linder 2023-03-29 10:43:54 +02:00
parent 6a57a9f393
commit d22652cd92

View file

@ -4,7 +4,7 @@
;*
Procedure.s mimetype(file.s)
Select file
Select LCase(file)
Case "pdf"
ProcedureReturn "application/pdf"
Case "zip"
@ -57,3 +57,9 @@ Procedure.s MapToJSONString(Map ConvertMap.s())
EndIf
ProcedureReturn #error_string
EndProcedure
Procedure.s xml_error_debug(XMLHandle)
Define Debug_String.s
Debug_String = "XML Error:["+XMLError(XMLHandle)+"] At Line:["+Str(XMLErrorLine(XMLHandle))+"] Position:["+Str(XMLErrorPosition(XMLHandle))+"]"
ProcedureReturn Debug_String
EndProcedure