User
92 pages. Start reading →
For programmers and operators. SDBasic, TCL, the VOC, dictionaries, the file system, and the client API.
| Page | Description | Source |
|---|---|---|
| Copyright and license | Who wrote this set, how it is licensed, and what the license lets you do with it. | 00a-copyright-and-licence.md |
| SD Core for Windows - Introduction and Getting Started | What a multivalue database is, what SD is, the four components, and your first session. | 00b-sd-introduction.md |
| SD Basic - Program Structure | Programs, subroutines and functions; variables, matrices, common blocks and how a program is called. | 01-sd-basic-program-structure.md |
| SD Basic - Program Control | Conditions, loops, jumps, and handing control to another program or to the command processor. | 02-sd-basic-program-control.md |
| SD Basic - Math Functions | Arithmetic, division and remainders, rounding, powers, trigonometry and random numbers. | 03-sd-basic-math-functions.md |
| SD Basic - Numeric Tests and Formatting | Reducing arrays to a number, testing what is numeric, bit operations, checksums and print formatting. | 03a-sd-basic-numeric-tests-and-formatting.md |
| SD Basic - String Functions | Measuring, finding, extracting, trimming, building and changing the case of text. | 04-sd-basic-string-functions.md |
| SD Basic - String Matching and Replacing | Replacing, wrapping, comparing, pattern matching, quoting and phonetic matching. | 04a-sd-basic-string-matching.md |
| SD Basic - Dynamic Arrays | Fields, values and subvalues - reading, changing and searching the structure that holds every SD record. | 05-sd-basic-dynamic-arrays.md |
| SD Basic - Operating on Whole Arrays | Walking an array, changing the mark level, the s functions, sorting and mark mapping. | 05a-sd-basic-array-operations.md |
| SD Basic - Data Collections | Structured values with named elements and arrays, held in a variable, nested as deeply as you like, and written to a file as JSON. | 05b-sd-basic-data-collections.md |
| SD Basic - JSON and Collection Files | Turning a collection into JSON text and back, keeping collections in files, and joining a record that another record points to. | 05c-sd-basic-json-and-collection-files.md |
| SD Basic - XML | Reading an XML document into a collection, looking in it with XPath, and writing one back. | 05d-sd-basic-xml.md |
| SD Basic - Data Conversion | Dates, times, numbers and text between the form SD stores and the form people read. | 06-sd-basic-data-conversion.md |
| SD Basic - Encrypting Data | A key from a passphrase, encrypted fields, and a conversion that shows them decrypted. | 06a-sd-basic-encryption.md |
| SD Basic - File Handling | Opening files, reading and writing records, locking, and transactions. | 07-sd-basic-file-handling.md |
| SD BASIC - File Handling: Locking and Asking About a File | Locks, transactions, asking about a file, and creating and configuring. | 07a-sd-basic-locking-and-asking-about-a-file.md |
| SD Basic - Select Lists | Building, walking, saving and combining lists of record ids. | 08-sd-basic-select-lists.md |
| SD Basic - Alternate Key Indexes | Building an index on a field, selecting through it, and the three steps that report success while doing nothing useful. | 09-sd-basic-alternate-key-indexes.md |
| SD Basic - Sequential Files | Reading and writing ordinary operating-system files a line or a block at a time. | 10-sd-basic-sequential-files.md |
| SD Basic - CSV Files | Reading and writing comma-separated data without hand-rolling the quoting. | 11-sd-basic-csv-files.md |
| SD Basic - Terminal Input and Output | Writing to the screen, reading from the keyboard, and positioning the cursor. | 12-sd-basic-terminal-input-and-output.md |
| SD Basic - The Screen Statement | Menus, dialogs, forms, color and the mouse, from BASIC. | 12a-sd-basic-the-screen-statement.md |
| SD BASIC - The SCREEN Statement: Forms | Forms and the widgets that go on them. | 12b-sd-basic-the-screen-statement-forms.md |
| SD BASIC - The SCREEN Statement: Tabs, Tables and Containers | Tabs, the text area, the table, the tree, the scroll bar, and containers and viewports. | 12c-sd-basic-the-screen-statement-widgets.md |
| SD BASIC - The SCREEN Statement: Running a Form, Styles and the Mouse | Running a form, events, styles and themes, borders and the mouse. | 12d-sd-basic-the-screen-statement-events-and-styles.md |
| SD Basic - Printing | Print units, headings and page breaks, and sending output somewhere other than the screen. | 13-sd-basic-printing.md |
| SD Basic - Locks and Transactions | Keeping two sessions out of each other's way, and making several writes all-or-nothing. | 14-sd-basic-locks-and-transactions.md |
| SD Basic - Sockets | Talking TCP from SD BASIC, as a client and as a server. | 15-sd-basic-sockets.md |
| SD Basic - System and Environment | Asking SD about itself, about the machine, and about the session you are in. | 16-sd-basic-system-and-environment.md |
| SD Basic - Status, Encryption and the Machine | Status codes, checksums, encryption, the file mask, the @variables, os.execute and the error log. | 16a-sd-basic-status-and-the-machine.md |
| SD Basic - Debugging | Stopping a program where you want it, and looking at what it thinks is true. | 17-sd-basic-debugging.md |
| SD BASIC - Debugging: The Full-screen Debugger | The debugger on the full screen and line by line, asking the AI, and pdump. | 17a-sd-basic-debugging-full-screen-and-ai.md |
| SD Basic - Modern Program Structure | Scope, local subroutines and functions, class modules and objects — writing SD BASIC the way you would write anything else. | 18-sd-basic-modern-program-structure.md |
| SD TCL - The Command Processor | How a command line is read, what the VOC does with it, and how sentences and paragraphs run. | 19-sd-tcl-command-processor.md |
| SD TCL - The Command Stack | Recalling and re-running commands, the @variables, and the session verbs. | 19a-sd-tcl-the-command-stack.md |
| SD TCL - Files and Records | Making, configuring and removing files; copying, renaming, deleting and dumping the records inside them. | 20-sd-tcl-files-and-records.md |
| SD TCL - Files and Records: Comparing, Triggers and Importing | Comparing files, copying operating system files, triggers, file.stat, and moving data in and out. | 20-sd-tcl-files-and-records-2-comparing-triggers-and-import.md |
| SD TCL - Data Collection Files | A file whose records are collections: describing their elements in the dictionary, and listing, selecting, indexing, copying and editing them from the command prompt. | 20a-sd-tcl-collection-files.md |
| SD TCL - The Query Processor | Choosing records, sorting them, and printing a report, without writing a program. | 21-sd-tcl-query-processor.md |
| SD TCL - The Query Processor: Headings, Totals and Output | Headings and footings, totals and breaks, and CSV, XML and JSON reports. | 21a-sd-tcl-query-processor-headings-and-output.md |
| SD TCL - Select Lists | Choosing a set of records once and then using it, saving it, and combining it with another. | 22-sd-tcl-select-lists.md |
| SD TCL - Alternate Key Indexes | Indexing a field so records can be found by its contents, and the step that is easy to skip. | 23-sd-tcl-alternate-key-indexes.md |
| SD TCL - Programs and the Catalog | Compiling SD BASIC, running it, and giving it a name you can type. | 24-sd-tcl-programs-and-the-catalogue.md |
| Programs: find.program, Dictionaries and the IDE | find.program, formatting source, dictionaries, named common blocks and the opening of ide. | 24a-sd-tcl-find-program-dictionaries-and-the-ide.md |
| Programs: The IDE's Keys | The keys and menus of ide. | 24b-sd-tcl-the-ide-keys.md |
| Programs: The IDE and Other Files, Tabs and Options | Collection files, locks, operating system files, indenting, the options record. | 24c-sd-tcl-the-ide-other-files-and-options.md |
| Programs: The IDE's Zoom, Fields View and Dictionary Items | Ctrl-E, F12, dictionary items as a form and records with marks. | 24d-sd-tcl-the-ide-zoom-fields-and-dictionary-items.md |
| Programs: The IDE's AI Line, Recovery and Window | The AI in the IDE, recovery copies and the window, and debug and generate. | 24e-sd-tcl-the-ide-ai-and-the-window.md |
| SD TCL - The ed Line Editor | The editor that runs inside SD, needs no terminal, and can be driven from a script. | 25-sd-tcl-ed.md |
| SD TCL - The edit Screen Editor | Microsoft Edit, a menu bar and a dozen keys — the one to reach for when you just want to change a record. | 26-sd-tcl-edit.md |
| SD TCL - The micro Screen Editor | The capable one — SD BASIC highlighting, a command bar, split windows and a help screen. | 27-sd-tcl-micro.md |
| SD TCL - The SED Screen Editor | SED is the editor of the IDE, by itself: no files pane, the same keys and the same menus. | 27a-sd-tcl-sed.md |
| SD TCL - The CED Data Collection Editor | A full-screen editor for a record that is a data collection — one level at a time, with the type of every element shown. | 27b-sd-tcl-ced.md |
| SD TCL - Printing and Spooling | Print units at the command prompt, keeping a job open, and capturing a session instead of printing it. | 28-sd-tcl-printing-and-spooling.md |
| SD TCL - The Terminal and the Session | Screen size, terminal behavior, silence, the inactivity timer, and writing to the error log. | 29-sd-tcl-the-terminal-and-the-session.md |
| SD TCL - The Terminal and the Session: Timers, Dates and Logging | The bell, the inactivity timer, echo, dates, currency, and command logging. | 29-sd-tcl-the-terminal-and-the-session-2-timers-dates-and-logging.md |
| SD TCL - The Home Screen | A start screen of tiles that every account can open: its tools, a terminal, switch account and sign out. | 29a-sd-tcl-the-home-screen.md |
| SD TCL - The Home Screen: my.menu and the AI Line | Your own programs, the Recent group, sub-menus and the AI line. | 29a-sd-tcl-the-home-screen-2-my-menu-and-the-ai-line.md |
| SD TCL - Asking the AI | One question to the AI your administrator has chosen, after you have seen what will be sent. | 29b-sd-tcl-asking-the-ai.md |
| SD TCL - The Development Tools | Full-screen pages for the work in your own account: its files, and the verbs that make and change them. | 29c-sd-tcl-the-development-tools.md |
| SD TCL - The Development Tools: tool.dict | The dictionary of a file: its items, what each one shows, and its indices. | 29c1-sd-tcl-tool-dict.md |
| SD TCL - The Development Tools: tool.query | The query and report builder: a list, sort, count or sum sentence built in five boxes, run and saved. | 29c2-sd-tcl-tool-query.md |
| SD TCL - The Development Tools: tool.bulk | A bulk update of one data file: a dry run first, then apply, and undo. | 29c3-sd-tcl-tool-bulk.md |
| SD TCL - The Development Tools: tool.catalog and tool.test | The programs of the account and their catalogs, and the account's tests. | 29c4-sd-tcl-tool-catalog-and-tool-test.md |
| SD TCL - Using the Full-Screen Pages | How to move around, choose, answer and get help on every full-screen page of SD: one set of keys for all of them. | 29d-sd-tcl-using-the-full-screen-pages.md |
| SD TCL - Moving Files In and Out | Bringing a text file into your account, and taking one out, with an sftp program over your usual login. | 29e-sd-tcl-moving-files-in-and-out.md |
| SD TCL - Processes and Phantoms | Seeing what a session is doing, running work in the background, and taking a snapshot of a running program. | 30-sd-tcl-processes-and-phantoms.md |
| SD TCL - Locks | The two kinds of lock, giving back the ones your session holds, and what you cannot do without an administrator. | 31-sd-tcl-locks.md |
| SD VOC - Structure and Usage | The Vocabulary file: all ten record types, and every field of each one. | 32-sd-voc-structure-and-usage.md |
| SD VOC - Using and Managing the VOC | How the command processor reads the VOC, the verbs that manage it, and what account creation puts there. | 32a-sd-voc-in-use.md |
| SD VOC - A Private Vocabulary and Your Own Record Types | The two optional VOC records $private.voc and $voc.parser: where SD looks for a command that the VOC does not hold, and what it does with a VOC record whose type it does not know. | 32b-sd-voc-private-vocabulary-and-parser.md |
| SD Dictionaries - Structure | The dictionary file: every record type, and every field of each one. | 33-sd-dicts-structure.md |
| SD Dictionaries - Using and Creating | How the query processor reads a dictionary, the system dictionaries, and creating one. | 33a-sd-dicts-in-use.md |
| SD Dictionaries - Conversions and Formatting | Every conversion code SD recognizes, and what each one does to a stored value. | 34-sd-dicts-conversions.md |
| SD Dictionaries - Formats and Expressions | Format specifications, I-type expressions, correlatives, and chaining conversions. | 34a-sd-dicts-formats-and-expressions.md |
| SD File System Concepts | The two file types, group structure, overflow, on-disk layout, and how the hash algorithm works. | 35-sd-file-system.md |
| SD Standard Subroutines | The cataloged names beginning with !, which of them an application may use, and how each is called. | 36-sd-standard-subroutines.md |
| SD Client API | The sdclilib client library, its functions across four language bindings, and the server status codes. | 37-sd-client-api.md |
| SD Client API: Select Lists to Error Handling | The rest of the function reference: select lists, the server, dictionary items, sequential files, packages and errors. | 37-sd-client-api-2-select-lists-and-the-rest.md |
| Embedded Python | The CPython interpreter SD runs for a BASIC program, the dictionary, list and string objects it exposes, and the twenty-one cataloged functions that reach it from BASIC. | 37a-sd-basic-python-integration.md |
| SD Client API: Language Bindings | The headers for six languages, and what the API cannot do. | 37b-sd-client-api-bindings.md |
| SD Glossary | Terms used in SD Core for Windows documentation, from account to VOC. | 38-sd-glossary.md |
| SD Terminal Information (Terminfo) | The terminfo database, the definitions that ship, and the compiler that ships with them. | 39-sd-terminfo.md |
| SD Programming 101 | A tutorial with worked example programs - lessons 1 to 6, from hello world to reading a file with a select list. | 40-sd-programming-tutorial.md |
| SD Programming 101 - Routines and an Application | Lessons 7 to 10: subroutines, functions, error handling, and a small application put together. | 40a-sd-programming-tutorial-routines.md |
| SD Example Programs | The file examples.bp you load into your account: the TUI guide's five pages and a first course in programming, compiled and ready to run. | 40b-sd-example-programs.md |
| SD and AI Agents: the Guide, the Knowledge Pack and the Skill | What an AI agent is given to work in SD, how it is kept true, and the one rule that does not bend: the gates are walls. | 41-sd-ai-agent-pack.md |
| Programming with a Remote File | What a program can do with a file on another SD server, and what it is told when it is refused. | 42-sd-programming-with-a-remote-file.md |
| Programming with a Remote File: Administering and Indices | Administering a remote file, indices, the cache, ids and a program that tells the refusals apart. | 42a-sd-programming-with-a-remote-file-administering.md |
| SD Basic - Syntax | Every statement and function, alphabetically, with its syntax and nothing else. | 94-sd-basic-syntax.md |
| SD TCL - Syntax | Every verb you can type, alphabetically, with its syntax and nothing else. | 95-sd-tcl-syntax.md |