I'm checking for null in the table as I am opening it.
This:
txtCustST.Text = row.Item("CustST" & ""
Or This:
txtCustZip.Text = IIf(IsDBNull(row.Item("CustZip"), "", row.Item("CustZip")
'It works on int fields too
txtSalesNumber.Text = IIf(IsDBNull(row.Item("SalesNumber"), 0, row.Item("SalesNumber")
I would thik a concatination is faster then a decision.
What do you all think?
And if the concat (&) works better, then how do you handle numeric fields? The same way:
txtCustST.Text = row.Item("SalesNumber" & ""
This:
txtCustST.Text = row.Item("CustST" & ""
Or This:
txtCustZip.Text = IIf(IsDBNull(row.Item("CustZip"), "", row.Item("CustZip")
'It works on int fields too
txtSalesNumber.Text = IIf(IsDBNull(row.Item("SalesNumber"), 0, row.Item("SalesNumber")
I would thik a concatination is faster then a decision.
What do you all think?
And if the concat (&) works better, then how do you handle numeric fields? The same way:
txtCustST.Text = row.Item("SalesNumber" & ""