Skip to content

Instantly share code, notes, and snippets.

@lighth7015
Last active January 13, 2020 19:09
Show Gist options
  • Save lighth7015/1d5b0c984551c2e421cc77e1128b1f00 to your computer and use it in GitHub Desktop.
Save lighth7015/1d5b0c984551c2e421cc77e1128b1f00 to your computer and use it in GitHub Desktop.
AppMain (ec)
import "ecere"
import "DefaultSkin"
import "EDA"
class AppMain: GuiApplication {
skin = "App";
Database handle;
DataSource source { driver = "SQLite" };
AppMain() {
//SetDefaultIdField("name");
handle = database_open(source, "default.dat");
}
~AppMain() {
//delete handle;
//delete source;
}
}
import "ecere"
import "EDA"
dbtable "screens" Screen {
String name "name";
String layout "layout";
};
Building project InterVueClient using the Debug configuration...
Compiling...
AppMain.ec
   AppMain.ec:21:1: error: No database table defined in this module or database_open already used.

InterVueClient (Debug) - 1 [e]rror, no warning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment