programming.nbk: Home | Index | Next Page: Tcl Mk4Tcl mk::file | Previous Page: Tcl
MetaKit is a Tcl database library
MetaKit Others property field row row view table
A basic example:
load MetaKit into the application:
package require Mk4tcl
open a database:
mk::file open db mydata.db
create a view in the database:
set view [mk::view layout db.addressbook "name country"]
put rows of data in the view:
mk::row append $view name "Mark Roseman" country "Canada" mk::row append $view name "Jean-Claude Wippler" country "The Netherlands" mk::row append $view name "Jeff Hobbs" country "Canada"
write the datafile to disk:
mk::file commit $view
search the data:
foreach row [mk::select $view country "Canada"] { puts [mk::get $view!$row name] }
close the datafile
mk::file close db
Commands:
programming.nbk: Home | Index | Next Page: Tcl Mk4Tcl mk::file | Previous Page: Tcl
Notebook exported on Monday, 7 July 2008, 18:56:06 PM Eastern Daylight Time