Navigue et interroge la documentation de référence officielle Uniface 9.7 ProcScript (594 entrées couvrant les instructions, fonctions, triggers, types de données, directives préprocesseur et fonctions struct). À utiliser quand l'utilisateur pose des questions sur la syntaxe ProcScript, les triggers Uniface, les opérations base de données, la gestion des listes, la manipulation d'entités, les fonctions de chaînes, la gestion d'erreurs ou tout sujet de programmation Uniface 9.7.
This skill gives you access to the complete official Uniface 9.7 ProcScript reference documentation -- 594 entries across 8 merged category files in reference/. Your role is to look up and read these files when answering ProcScript questions, not to rely on memorized knowledge.
ProcScript is the 4GL scripting language of the Uniface low-code platform. Key traits to keep in mind when reading the docs:
;) start comments, not end statements%\ for continuation)FIELD.ENTITY (qualified) or FIELD (in context)$1-$10 (scratch), $NAME$ (general), variables/endvariables blocks$status holds the result of the last operation (0 = success, <0 = error)All documentation is in reference/ relative to this skill. Each category is a single merged file containing all entries separated by --- horizontal rules:
reference/
llms.txt # Index: every entry with title + one-line description (~620 lines)
procstatements.md # 173 entries -- statements (retrieve, read, store, if, for, putitem, ...)
procfunctions.md # 248 entries -- functions ($status, $concat, $scan, $replace, $date, ...)
triggersstandard.md # 74 entries -- standard triggers (Read, Write, Store, Validate Field, ...)
triggersextended.md # 34 entries -- extended triggers (OnClick, OnChange, expand, ...)
procdatatypes.md # 21 entries -- data types (string, numeric, date, struct, handle, ...)
procprecomp.md # 23 entries -- preprocessor directives (#define, #if, #include, ...)
procstructfunctions.md # 13 entries -- struct functions ($name, $parent, $scalar, $tags, ...)
predefinedoperations.md # 8 entries -- predefined operations (Exec, Init, Cleanup, Quit, ...)
Each entry starts with # Title and includes the full reference content: syntax, parameters, return values, usage notes, and code examples. Entries are separated by ---.
Follow this lookup strategy. Always consult the docs -- do not answer from memory alone.
Map the user's question to a category file:
| User asks about... | Look in |
|---|---|
| A statement (retrieve, read, store, if, for, putitem, creocc, ...) | procstatements.md |
A $function ($status, $concat, $scan, $date, $curocc, ...) | procfunctions.md |
| A trigger (Read, Write, Store, Validate, Leave Field, ...) | triggersstandard.md |
| An extended/widget trigger (OnClick, OnChange, expand, ...) | triggersextended.md |
| A data type (string, numeric, date, struct, handle, ...) | procdatatypes.md |
| Preprocessor (#define, #if, #include, compile-time constants) | procprecomp.md |
| Struct operations ($name, $parent, $scalar, $tags, ...) | procstructfunctions.md |
| Predefined operations (Exec, Init, Cleanup, Quit, ...) | predefinedoperations.md |
Option A -- Grep for the entry heading (fastest, when you know the name):
Grep: pattern="^# retrieve$" path="reference/procstatements.md" -A 80
This returns the entry and the following lines. Read until you hit the next --- separator or # NextTitle.
Option B -- Search the index (when unsure of the exact name):
Read reference/llms.txt to find the entry name and its category file. Each section lists the file:
## Statements
File: `procstatements.md`
- retrieve: Activate the Read trigger for the first outermost entity...
Option C -- Grep across all files (for cross-cutting questions):
Grep: pattern="your search term" path="reference/" glob="*.md"
This is useful for questions like "which statements support the /lock option?" or "where is $webinfo used?".
-A (after context) to read the entry. Typically -A 80 is enough for one entry; increase if the entry is longer```procscript fenced blocks)$status return values and error codes when relevantreference/llms.txt for keywords related to the taskreference/triggersstandard.md if the task involves a specific event contextpattern="^# X$" in the appropriate category filereference/llms.txt and filter by the relevant section headerreference/ directory is regenerated by doc/scripts/convert.py from doc/html/ sources -- do not edit these files manually..md file contains multiple entries separated by ---. Use Grep with -A context to read individual entries.