Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pass a RecordSet field to Function

Status
Not open for further replies.

PeterWallace

Programmer
Apr 28, 2003
210
0
0
AU
In vb6 I can read a Table .... get a field in that Table then

pass it to a function to see if it is Null ....

My prob is not working out IF it is NULL but

haow to Pass the Field to Function


e.g

Public Function IsNumFieldNull(ByVal fld As Field) As Object

Is there an equivalent In VB.Net

Thanks in Advance

Peter
 
Did you try:
[tt]
Public Function IsNumFieldNull(ByRef fld As Object) As Boolean
[/tt]

Have fun.

---- Andy

A bus station is where a bus stops. A train station is where a train stops. On my desk, I have a work station.
 

Vb .Net already has a function to determine if a value is null: IsDBNull()

Assuming a DataTable named "dt":

If IsDBNull(dt.Rows(RowNumberHere).Item("FieldNameHere")) Then

End If



I used to rock and roll every night and party every day. Then it was every other day. Now I'm lucky if I can find 30 minutes a week in which to get funky. - Homer Simpson

Arrrr, mateys! Ye needs ta be preparin' yerselves fer Talk Like a Pirate Day!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top