CreateTable.sml

  Download

More scripts: Database

Syntax Highlighing:

comments, key words, predefined symbols, class members & methods, functions & classes
            
# Declare Variables here
Vector Bline;			# your output Vector
class DATABASE dbase;		# the DATABASE class to store Open..() return value
class DBTABLEINFO dbtable;	# return value from create, used in other functions as well
GetOutputVector(Bline, "VectorToolkit");
dbase = OpenVectorPointDatabase(Bline);
dbtable = TableCreate(dbase, "rt1");
TableAddFieldInteger(dbtable, "Num", 5);
TableAddFieldFloat(dbtable, "ZEIT", 5, 2);
TableWriteRecord(dbtable, 0, 1, 7.02);
TableWriteRecord(dbtable, 0, 2, 7.04);
TableWriteRecord(dbtable, 0, 3, 7.10);