SQLite: ask to display a non existent UNIQUE ID ?

I had a crazy idea minutes ago:

in a current project, what happens if I ask for the next Record with a no more existant UNIQUE ID ?

With my actual code, since all Fields are Nil (but not the RecordSet), it only clears the previous window contents (if there was data).

But, this is disturbing when you are not awaiting that.

I tried to trap a Nil field, but it crash (If rs.Field("Issue_Number").StringValue = Nil Then).

The idea was to loop until the next valid ID in the case of missing(s) UNIQUE IDs.

this make no sense

“” = Nil

If rs.Field("Issue_Number").Value.isNull Then

should work

Check your data base in the Debugger: all fields (TEXT here) are noted Nil.

So, as a good (very old) boy, I checked against Nil :frowning:

If it does not makes sense, it is Xojo who do not have sense :wink:

@Jean-Yves: I checked and… GOOD ANSWER !

Thank you !