Okay, I'm moving into version 2007 from version 5, and it seems some
things to do with the DB API have changed...
I have a recordset superclass called "Answer"
I'm trying to return an Answer object from the following modular
function (ModuleDatabase as MySQLdatabase).
Protected Function Query (question as string) as Answer
return Answer(ModuleDatabase.SQLselect(question))
End Function
Very simple. I cast the resulting recordset into an instance of Answer.
Here's the problem.
This function is always returning nil.
So I tried the following:
Protected Function Query (question as string) as Answer
dim r as recordset
r = ModuleDatabase.SQLSelect(question)
Return answer(r)
End Function
r is definitely returning a value, but it seems I cannot cast it to a
Answer object.
Am I missing something (as usual??)
I'm sure I've subclasses recordset objects under 5.5.5 before.
- Tom
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>