Skip to content

Commit e2c7476

Browse files
committed
GetDefaultFormat for #45
1 parent 5a62b63 commit e2c7476

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

MDX2JSON/ResultSet.cls.xml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,12 +275,18 @@ Returns array of cells (left-to-right, up-to-down)</Description>
275275

276276
<Method name="GetDefaultFormat">
277277
<ClassMethod>1</ClassMethod>
278-
<ReturnType>%String</ReturnType>
278+
<ReturnType>%ZEN.proxyObject</ReturnType>
279279
<Implementation><![CDATA[
280+
set format = ##class(%ZEN.proxyObject).%New()
281+
280282
set ngs = ##class(%SYS.NLS.Format).GetFormatItem("NumericGroupSeparator")
281283
set size = ##class(%SYS.NLS.Format).GetFormatItem("NumericGroupSize")
282284
set ds = ##class(%SYS.NLS.Format).GetFormatItem("DecimalSeparator")
283-
return "#"_ngs_$TR($J("",size)," ","#")_ds_"##"
285+
286+
set format.double = "#"_ngs_$TR($J("",size)," ","#")_ds_"##"
287+
set format.int = "#"_ngs_$TR($J("",size)," ","#")
288+
289+
return format
284290
]]></Implementation>
285291
</Method>
286292
</Class>

0 commit comments

Comments
 (0)