17-01-22 06:31 AM
18-01-22 11:10 AM
18-01-22 11:28 AM
18-01-22 11:39 AM
18-01-22 12:15 PM
for each dr as datarow in blanks.rows
for each c as datacolumn in blanks.columns
if c.DataType = GetType(Decimal) then
if isdbnull(dr(c.columnname)) or dr(c.columnname) = 0 then
dr(c.columnname) = Value
end if
else if c.DataType = GetType(Boolean) then
if isdbnull(dr(c.columnname)) or dr(c.columnname) = False then
dr(c.columnname) = Value
end if
else
if isdbnull(dr(c.columnname)) or CStr(dr(c.columnname)) = String.Empty then
dr(c.columnname) = Value
end if
end if
next
next
no_blanks = blanks
18-01-22 01:53 PM
for each dr as datarow in blanks.rows
for each c as datacolumn in blanks.columns
if c.DataType = GetType(Decimal) then
if isdbnull(dr(Field_Name)) or dr(Field_Name) = 0 then
dr(Field_Name) = New_Value
end if
else if c.DataType = GetType(Boolean) then
if isdbnull(dr(Field_Name)) or dr(Field_Name) = False then
dr(Field_Name) = New_Value
end if
else
if isdbnull(dr(Field_Name)) or CStr(dr(Field_Name)) = String.Empty then
dr(Field_Name) = New_Value
end if
end if
next
next
no_blanks = blanks
One thing I would like to know what If condition can be provided if the data type is date/time/date time.?18-01-22 02:35 PM