[Gambas-user] MULTIPLE ROW RESULT

Nx GT-R BOY nxgtrturbo at ...626...
Tue Jan 22 00:50:32 CET 2008


MULTIPLE ROW RESULT

Hi, I got a trouble with the "Result" data type @ gambas, I have a function
like this:

PUBLIC myresult AS Result

PUBLIC SUB search(lookingfor AS String, table AS String, reference AS
String, value AS String)
myresult = conexion.Exec("Select " & lookingfor & " from " & table & " where
" & reference & " = '" & value & "'")
END

Everything works perfect when the query returns ONLY ONE ROW, but what about
multiple row result?, I tried:

PUBLIC myresult AS Result[X]
and
PUBLIC myresult[X] AS Result

But that didn't work (the language doesn't allow that), Is there any
possible way to catch all the rows?




-- 
http://www.cardomain.com/ride/645756
http://nxgtrturbo.googlepages.com/
http://www.fotolog.com/nxgtrturbo/
http://tallerhuertas.googlepages.com/



More information about the User mailing list