Subclass SQLITEDATABASE

is this something that doesn’t work? (Xojo2016r4.1)

I created a sublcass of SQLiteDatabase
and added 3 methods

However, none of those methods show up in Autoomplete
and if I attempt to use any of them I get “this item does not exist”

This is by no means the first subclass I’ve created, and if I make subclasses of other objects they all work just fine

Strange, I’ve just done the same (subclass of SQLiteDatabase) and it works

I thought so too…
The subclass “myDatabase” compiles
but attempts at accessing any of the new methods fail… and yes they are public

I tried to use EXTENDS SQlitedatabase
and THAT works… so I’m going that direction

Is the constructor public?

I hadn’t added a constructor, since I wasn’t overriding anything there
so it would be calling its SUPER.constructor by default

Platform?

macOS Sierra , Xojo2016r4.1

Stupid question: you’re sure your instance is of the subclass type? Sometimes changes need a return to apply in the IDE.

Yes… I even created another subclass of a different object just as a test… and IT worked.

I have moved on and am using EXTENDS instead of a subclass, and this is working for me…

[quote=359860:@Dave S]Yes… I even created another subclass of a different object just as a test… and IT worked.

I have moved on and am using EXTENDS instead of a subclass, and this is working for me…[/quote]

I think your missing something, if i do the same it works over and over.

Your methods are not “Shared Methods” ?
You don’t have the subclass inside a module ?
It’s made public?

I had one time when i changed the super off a subclass using the IDE and the class stopped working. Perhaps you have the same problem?