FAQ/Divide-By-Zero.md
... ...
@@ -0,0 +1,19 @@
1
+We have implemented the Div/0 custom format option. This functionality is available in our daily DLL download.
2
+
3
+Usage; code for your Izenda global.asax:
4
+
5
+```
6
+// By default the display still shows "#DIV/0" when a divide by zero action occurs.
7
+
8
+
9
+//To Display "Division by Zero Text"
10
+(AdHocSettings.Formats.Get("DivisionByZero") as AdHoc.Formats.Formats.DivisionByZeroFormat).ReplaceText = "Division by Zero Text";
11
+
12
+
13
+//To Display "0"
14
+(AdHocSettings.Formats.Get("DivisionByZero") as AdHoc.Formats.Formats.DivisionByZeroFormat).ReplaceText = "0";
15
+
16
+
17
+//To Display NULL (nothing)
18
+(AdHocSettings.Formats.Get("DivisionByZero") as AdHoc.Formats.Formats.DivisionByZeroFormat).ReplaceText = "";
19
+```
... ...
\ No newline at end of file