How can I check EOF is True or False in compactframework

  • Thread starter Thread starter Flying Whiz
  • Start date Start date
F

Flying Whiz

How can I check EOF is True or False in compactframework.

I just want to write some thing like this in compactframework

If Rs.EOF = False Then
Val = True
Else
Val = False
End If

Whiz
 
Flying said:
How can I check EOF is True or False in compactframework.

I just want to write some thing like this in compactframework

If Rs.EOF = False Then
Val = True
Else
Val = False
End If

I see this code quite frequently in C#, C, Java etc. Just use the much
cleaner and faster:

Val = !Rs.EOF; (is it Not Rs.EOF - I don't do VB :))

Hilton
 
Yes..i am looking for Val = NOT Rs.EOF.I cud'nt find EOF or BOF
definations in .Net CF.Hw can I do that.
 
There is no recordset object in CF. The closest thing there is is a
DataReader. I already answered that one:

Dim rdr as SqlCeDataReader = myCommand.ExecuteReader()
while rdr.Read()
... do something
wend
 
There is no recordset object in CF. The closest thing there is is a
DataReader. I already answered that one:

Yep. Since all of my reads are forward only I wrote a wrapper class that
emlulates a recordset object. I set the EOF property to True when .Read
fails.
 
Back
Top