Skip to content

Commit 5a62b63

Browse files
committed
GetDefaultFormat readable
1 parent 4411e9f commit 5a62b63

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

MDX2JSON/ResultSet.cls.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,11 @@ Returns array of cells (left-to-right, up-to-down)</Description>
276276
<Method name="GetDefaultFormat">
277277
<ClassMethod>1</ClassMethod>
278278
<ReturnType>%String</ReturnType>
279-
<Implementation><![CDATA[ return "#"_##class(%SYS.NLS.Format).GetFormatItem("NumericGroupSeparator")_$TR($J("",##class(%SYS.NLS.Format).GetFormatItem("NumericGroupSize"))," ","#")
279+
<Implementation><![CDATA[
280+
set ngs = ##class(%SYS.NLS.Format).GetFormatItem("NumericGroupSeparator")
281+
set size = ##class(%SYS.NLS.Format).GetFormatItem("NumericGroupSize")
282+
set ds = ##class(%SYS.NLS.Format).GetFormatItem("DecimalSeparator")
283+
return "#"_ngs_$TR($J("",size)," ","#")_ds_"##"
280284
]]></Implementation>
281285
</Method>
282286
</Class>

0 commit comments

Comments
 (0)