Subject Re: [IBO] Getting validation source from a domain
Author Thomas Steinmaurer
Hi,

> I found the mistake in my code for the original problem but have a few
> questions about your recommendations.
>
>> Use lCursor.First instead of lCursor.Open
>
> Does it matter? I'd like to know why more then just know how.

Sure, when using a TIB_Cursor which I think you do, right?

Quoting Jason from the FAQ section:

First closes the cursor (if open) then opens it and fetches the first
row. Calling open may just open the cursor and leave you at BOF, i.e.
before the first row.


>> When checking if a result set is empty or not, you'd better use the
>> .IsEmpty method.
>
> In my IBO, .IsEmpty returns a compile time error (undefined) for a
> TIB_Cursor.

Mixed that up with something else.


Regards,
Thomas