[Gambas-user] Empty Result in Gambas

Nx GT-R BOY nxgtrturbo at ...626...
Mon Feb 18 01:23:15 CET 2008


 Hi, I have a little problem with the Result data-type in gambas.

I don't know how to know when the result is empty, something like this:

myresult = conexion.Exec("select name from table where id = '5'")

If theres an id=5 everything goes perfect, since I know that because
myresult!name gives me something, but what when nothing was found, I tried:

If myresult!name = NULL then
Message.info("Not found")
end if

But that didn't work, so, whats the way to do it?

Thanks in advance.

-- 
Nx GT-R



More information about the User mailing list