Setting a datacolumns value to NULL?

D

Doug Swanson

How do I set the value of a specific datarow's column to be null?

Ex.
Private sub savedata(byval sOID as string, byval sComment as SqlString)
Dim ods as dataset
Dim odt as datatable
Dim odr as datarow
Dim odrarray() as datarow
try
ods = me.getdataset(xxx...)
odt = ods.tables(0)
odrarray = odt.select("myoid = '" + sOID + "'")
for each odr in odrarray
If sComment.isNull then
??????? How do I set this particular row/column to be
null???
Else
odr("mycomment") = sComment.value
End if
next
finally



--
Doug Swanson
Senior Applications Developer
Synchrono, Inc
651.228.1772
(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top