iOS Question how to confirm a recordset is empty ?

little3399

Active Member
Licensed User
Longtime User
Hi all

Is there any way to confirm a recordset was empty ? It seem the recordset.nextrow can not support this ? Tks!
 

sorex

Expert
Licensed User
Longtime User
what do you mean with empty?

if it exists it won't be empty but contain default value or NULL values.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
oh you meant recordset I thought you meant the record.

I guess you use

do while recordset.nextrow

so I guess it will skip the loop if it's empty.
 
Upvote 0

little3399

Active Member
Licensed User
Longtime User
my logic flow was if the recordset empty and then insert some data into the table , if not , then not insert ...
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
I just checked and the help that shows up when typing a resultset.NextRow mentions that it returns true if it has records.

so your false check should work.
 
Upvote 0
Top