[info procs Test] {}] {source } # # Some pre-build keyed lists to test with. keyB1 } 0 {valueB1} Test keylist {keylget tests} { set keyedlist $list2. If {} is specified for retvar, the value is not returned, allowing the Tcl programmer to determine if a key is present in a keyed list without setting a variable as a. The procedure to add a record is called like this: Db_Insert keylist datablob The datablob might be a name, value list suitable for passing to array set, or simply a .

Author: JoJozahn Faurn
Country: Barbados
Language: English (Spanish)
Genre: Love
Published (Last): 22 June 2014
Pages: 128
PDF File Size: 18.40 Mb
ePub File Size: 19.38 Mb
ISBN: 987-9-64751-839-1
Downloads: 19003
Price: Free* [*Free Regsitration Required]
Uploader: Shagal

When I am going to use ” keylset ” in my code, it is getting an error “invalid command name “keylset””. That installs the current version of a lot of packages, TclX among them.

If you’re using Debian or a derivative of it you will probably do: Oh yeah, I’m trying to turn sfm into a pure Tcl application. Rakesh Lyf Iz Jrny 16 8.

Subfields are actually fields where the value is another keyed list. SEH — For some reason I have re-implemented Tclx ‘s keyed list commands keylset, keylget, keylkeys, keyldel in pure Tcl. The way you install the extension package will depend on what distribution of Tcl you are using.


The keyed list commands are part of the TclX extension package. It could easily be written to work in 8.

LV If you have the code on a web page or in a web accessible keylixt code repository, just mention the URL here. You can get the same result this way requires Tcl 8. That’s why I wrote records. For TclX documentation, this seems to be a good place to start.

I think this is much superior he said, humbly: If you’re using Debian or a derivative of it you will probably do:. However, the recommendation is often made these days to moving to Tcl 8.

Lists and Keyed Lists

All keyed list management commands take the name of the variable containing the keyed list as an argument i. LV you say for the most part. By using our site, you acknowledge that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service.

Stack Overflow works best with JavaScript enabled. Not a problem when you have dozens of records, big problem when you have thousands. A keyed list is a list in which each element contains a key and value pair. These element pairs are stored as lists themselves, where the key is the first element of the list, and the value is the second.


DC — Though this code has the ability to nest lists and retrieve nested keys within lists, it doesn’t support the TclX ability to references them via a dot.

ActiveTcl Documentation

Sign up using Facebook. Sign up using Email and Password. It requires Tcl 8. Which parts of Tclx ‘s keyed lists are not mimic’d? As there are many possible distributions, or you could build it from source yourself, you’ll need to specify carefully what is your platform and setup if it isn’t one of the ones I’ve listed above.

If you don’t have something like that, Google and yahoo both make various resource available for people to make code, etc. Larry Smith One problem I have with both dicts and keyed lists is that each one drags around its own copy of the field names. So, you krylist reference nested keys in a list with list1. Are you sure your code is correct? Email Required, but never shown.

I didn’t really bother with that code.

Previous post: