package ;
import sys.db.Connection;
import sys.db.Object;
import sys.db.Sqlite;
import sys.db.Manager;
import sys.db.TableCreate;
import sys.db.Types.SId;
import sys.db.Types;
import sys.FileSystem;
import sys.io.File;
import sys.io.FileInput;
class TMC extends Object
{
public var Id:SId;
public var Path:SString<255>;
public var Confemi:SInt;
public var Serial:SString<8>;
public var Transceiver1:SInt;
public var Transceiver2:SInt;
}
class TmcScanner
{
public function new()
{
var cnx = Sqlite.open("tmcscanner.db");
Manager.cnx = cnx;
Manager.initialize();
if (!TableCreate.exists(TMC.manager)) {
TableCreate.create(TMC.manager);
}
var tmc = new TMC();
tmc.Confemi = 10;
tmc.Serial = "";
tmc.Path = "/a/path";
tmc.Transceiver1 = 5;
tmc.Transceiver2 = 0;
tmc.insert();
Manager.cleanup();
cnx.close();
}
}
--
To post to this group haxe...@googlegroups.com
http://groups.google.com/group/haxelang?hl=en
---
You received this message because you are subscribed to the Google Groups "Haxe" group.
For more options, visit https://groups.google.com/d/optout.
If you compile with -debug, you should at least find out which object is null.
Hugh