From b55064c41be938320c81317568c502f04fd4bbc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20P=C3=B6tzl?= Date: Sat, 21 Nov 2026 08:45:33 +0100 Subject: [PATCH 1/2] Remove MSysAccessStorage relation from source --- source/relations/MSysAccessStorageSTGREL.json | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 source/relations/MSysAccessStorageSTGREL.json diff --git a/source/relations/MSysAccessStorageSTGREL.json b/source/relations/MSysAccessStorageSTGREL.json deleted file mode 100644 index aac712e..0000000 --- a/source/relations/MSysAccessStorageSTGREL.json +++ /dev/null @@ -1,18 +0,0 @@ -{ - "Info": { - "Class": "clsDbRelation", - "Description": "Database relationship" - }, - "Items": { - "Name": "MSysAccessStorageSTGREL", - "Attributes": 4096, - "Table": "MSysAccessStorage", - "ForeignTable": "MSysAccessStorage", - "Fields": [ - { - "Name": "Id", - "ForeignName": "ParentId" - } - ] - } -} From 0c6bbc6d714ac76fc3570d23bd00dfcd7d7c602e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20P=C3=B6tzl?= Date: Sat, 21 Nov 2026 08:45:48 +0100 Subject: [PATCH 2/2] Ignore VCS index, generated agent docs and local MCP config --- .gitignore | 12 +++ source/AGENTS.md | 99 -------------------- source/vcs-agent-docs/forms-reports.md | 105 ---------------------- source/vcs-agent-docs/queries.md | 53 ----------- source/vcs-agent-docs/testing.md | 110 ----------------------- source/vcs-agent-docs/troubleshooting.md | 94 ------------------- source/vcs-agent-docs/vba-modules.md | 101 --------------------- source/vcs-index.idx | Bin 14602 -> 0 bytes 8 files changed, 12 insertions(+), 562 deletions(-) delete mode 100644 source/AGENTS.md delete mode 100644 source/vcs-agent-docs/forms-reports.md delete mode 100644 source/vcs-agent-docs/queries.md delete mode 100644 source/vcs-agent-docs/testing.md delete mode 100644 source/vcs-agent-docs/troubleshooting.md delete mode 100644 source/vcs-agent-docs/vba-modules.md delete mode 100644 source/vcs-index.idx diff --git a/.gitignore b/.gitignore index e73c1a7..bc66de1 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,15 @@ test-results/ .env.* !.env*.example *.zip +*.mdb +*.accd[aber] + +# The local VCS index file is paired with the database and should not be committed +vcs-index.* + +# Local MCP server configuration (contains machine-specific paths) +.mcp.json + +# Agent docs generated by the VCS add-in on every export +source/AGENTS.md +source/vcs-agent-docs/ diff --git a/source/AGENTS.md b/source/AGENTS.md deleted file mode 100644 index f3d3495..0000000 --- a/source/AGENTS.md +++ /dev/null @@ -1,99 +0,0 @@ -# AGENTS.md - Working With Exported Microsoft Access Source Files - -This folder is a Microsoft Access database exported to text files by the MSAccess -VCS add-in. Editing these files is how you change the database, but edits only -take effect when the add-in imports them back in Access. You cannot run or test -this code directly, and the add-in is required to build a working database from it. - -This file and everything under `vcs-agent-docs/` are generated by the add-in and -**rewritten on every export**. Keep your own project notes elsewhere. - -## Non-negotiable rules - -1. **Do not change file encoding.** Source files are UTF-8, and most are UTF-8 - *with BOM* (bytes `EF BB BF`). Re-saving without the BOM makes import fail or - silently corrupt the object. -2. **Do not change line endings.** Access `LoadFromText` requires CRLF (`\r\n`). -3. **Do not edit** `vcs-index.idx` (binary change index), `.frx` files (binary OLE - data), or `.thmx` files (ZIP archives — edit the extracted contents instead). -4. **Do not rename a file** without changing the object name stored inside it. - File names must match object names exactly. -5. **Do not alter VBA scaffolding:** `Attribute VB_Name` lines, the - `VERSION`/`BEGIN`/`END` block at the top of a `.cls`, or module-level - `Attribute VB_*` lines. The code below them is yours to edit. - -## Which file do I edit? - -| To change | Edit | Read first | -|---|---|---| -| VBA in a standard module | `modules/.bas` | `vcs-agent-docs/vba-modules.md` | -| VBA in a class module | `modules/.cls` | `vcs-agent-docs/vba-modules.md` | -| Form or report code-behind | `forms/.cls`, `reports/.cls` | `vcs-agent-docs/vba-modules.md` | -| Form or report layout | `forms/.form`, `reports/.report` | `vcs-agent-docs/forms-reports.md` | -| Conditional formatting rules | the form's or report's companion `.json` | `vcs-agent-docs/forms-reports.md` | -| Query logic | `queries/.sql` — the sole source of truth for SQL | `vcs-agent-docs/queries.md` | -| Query properties or design layout | `queries/.json` | `vcs-agent-docs/queries.md` | -| A macro | `macros/.macro` | — | -| A table definition | `tbldefs/.xml` and `.json` | — | -| A connection string | `.env` at this folder's root (gitignored) | `vcs-agent-docs/troubleshooting.md` | -| Tests | a test module under `modules/` | `vcs-agent-docs/testing.md` | - -Export format 5.0.0 renamed several object types from the overloaded `.bas` -extension: forms to `.form`, reports to `.report`, macros to `.macro`, and queries -to `.sql` plus `.json`. Older projects still use `.bas` for these, so check which -extensions are actually present. Import accepts both. - -## File placement follows the `@Folder` annotation - -The add-in reads Rubberduck-style `'@Folder("Category")` annotations and exports -components into matching subdirectories, with dots as path separators: -`'@Folder("Components.ADP")` lands in `modules/Components/ADP/`. Components with no -annotation stay at the root of `modules/`, `forms/`, or `reports/`. Import scans -subdirectories recursively. - -**The annotation decides where the file belongs on disk, not the folder you happen -to be editing in.** This is the most common way agents corrupt a project: - -- For modules, the annotation is in the `.bas` or `.cls` itself. For forms and - reports it lives in the `.cls` code-behind only — not in `.form`/`.report`, - `.json`, or `.svg`. -- Before creating or moving a component, search the **entire** `modules/`, `forms/`, - or `reports/` tree for an existing file with the same base name (for modules, - match on `Attribute VB_Name`). Edit that file in place rather than creating a - second copy elsewhere. -- If two copies exist, such as `modules/modFoo.bas` and `modules/Tests/modFoo.bas`, - build imports **both** and the last one silently wins. No error is shown. -- Build removes a misplaced duplicate automatically when exactly one copy sits in - its annotation-derived folder. Ambiguous cases are left alone with a warning. - Removing a duplicate form or report deletes its whole source group together - (`.form`/`.report` plus `.cls`, `.json`, and `.svg`). - -To relocate a component, change its `'@Folder` annotation and let the next export -move the file. - -## Where the details live - -Each of these is short. Read the matching one before making that kind of change. - -| File | Read it before | -|---|---| -| `vcs-agent-docs/vba-modules.md` | Editing any `.bas` or `.cls`, or adding a member attribute | -| `vcs-agent-docs/forms-reports.md` | Editing a `.form` or `.report` layout, or conditional formatting | -| `vcs-agent-docs/queries.md` | Editing anything in `queries/` | -| `vcs-agent-docs/testing.md` | Writing, running, or filtering tests | -| `vcs-agent-docs/troubleshooting.md` | An import, build, or compile failed, or you need the log files | - -## How changes get back into Access - -Ask the user to run a **merge build** from the add-in ribbon, which imports changed -source files into the existing database. A **full build** creates a new database -from source instead, and **export** goes the other way, writing database objects -out to these files. When a source file and its database object have both changed, -the add-in detects the conflict and prompts the user to choose which version wins. - -## More information - -- [MSAccess VCS Add-in](https://github.com/joyfullservice/msaccess-vcs-addin) -- [Wiki: Export-Import File Types](https://github.com/joyfullservice/msaccess-vcs-addin/wiki/Export-Import-File-Types) -- [Wiki: Supported Objects](https://github.com/joyfullservice/msaccess-vcs-addin/wiki/Supported-Objects) -- [Wiki: Options](https://github.com/joyfullservice/msaccess-vcs-addin/wiki/Options) diff --git a/source/vcs-agent-docs/forms-reports.md b/source/vcs-agent-docs/forms-reports.md deleted file mode 100644 index a6f0b2d..0000000 --- a/source/vcs-agent-docs/forms-reports.md +++ /dev/null @@ -1,105 +0,0 @@ -# Form and Report Layout Files - -Covers `.form` and `.report` files (legacy projects use `.bas`) and their companion -`.json`. For the `.cls` code-behind, see `vba-modules.md`. - -## The SaveAsText format - -These files use Access's `SaveAsText` format. It is not VBA, and it is largely -undocumented: - -``` -Version =21 <- Access version marker -VersionRequired =20 -Begin Form <- Form or Report - RecordSelectors = NotDefault - Caption ="My Form Title" - Begin - Begin Label <- A control - Left =1234 - Top =567 - Width =2000 - Height =300 - Name ="lblTitle" - Caption ="Welcome" - End - Begin CommandButton - Name ="cmdOK" - Caption ="OK" - OnClick ="[Event Procedure]" - End - End -End -CodeBehindForm <- VBA section, when layout is not split -Attribute VB_Name = "Form_frmMyForm" -``` - -## What is safe to change - -Property edits are safe wherever you can infer the expected format from -neighboring values: caption text inside quotes, geometry such as `Left`, `Top`, -`Width`, and `Height`, colors, and font sizes. On forms (export format 5.1.0+), -layout-group geometry is rewritten to a 60-twip grid, so a track edit rewrites -sibling cells; do not drop `Left`/`Top`/`Width`/`Height` or `EmptyCell` spacers. -`LayoutCached*` is omitted on export. Guessing at a property whose format you -cannot infer breaks the layout or fails the import, so leave those alone, along -with the `Version` lines at the top. Keep `Begin`/`End` balanced throughout. - -## Adding, removing, and renaming controls - -Structural edits work if you copy rather than compose. The property set Access -expects for a control type is not something to invent, so use an existing -control of the same type in the same file as your template. - -To add a control: - -1. Copy an entire `Begin ` ... `End` block, including any nested - `Begin`/`End` subtree. An attached label lives *inside* its text box, combo - box, or check box, and an option group's buttons live inside the group. -2. Paste it into the intended section's inner `Begin` block. Appending at the - end of the section is the safest placement. -3. Give the new control, and every nested control copied with it, a `Name` that - is unique within the file. -4. Set the geometry. Raise the form `Width` and section `Height` if the new - control extends past them. On a Layout-view form, keep `LayoutGroup`, - `GroupTable`, and `RowStart`/`ColumnEnd` consistent with the row you copied. -5. Set `TabIndex` to a value not already used in that section. `TabIndex`, not - file order, determines tab order. -6. If you kept an event property such as `OnClick ="[Event Procedure]"`, add the - handler to the `.cls` code-behind. Access binds handlers by control name, so - `Private Sub cmdSave_Click()` pairs with `Name ="cmdSave"`. - -To remove a control, delete its whole block including nested children, then -remove its event handlers and any references to it from the `.cls`. - -Renaming means updating every reference to the old name: handler procedure names -and code in the `.cls`, and any key for that control in the companion `.json`. - -## Conditional formatting - -With **Decode conditional formatting to JSON** enabled (export format 5.0.0 and -later), the opaque `ConditionalFormat` and `ConditionalFormat14` hex blocks are -stripped out of each control and stored as readable rules in the companion `.json`, -under `Items.ConditionalFormatting` keyed by control name. Edit the rules there -rather than the hex. - -With the option disabled, the binary blocks stay inline in the layout file. Either -way the add-in rebuilds them on import. - -On import the JSON wins. If a control has a JSON entry, any stale inline block for -that control is stripped before the rebuilt block is injected, which keeps repeated -imports idempotent. A control with an inline block but no JSON entry is left -untouched. - -The binary layout and the exact boundary of what survives a decode/rebuild cycle -are documented in -[docs/access-conditional-format.md](https://github.com/joyfullservice/msaccess-vcs-addin/blob/dev/docs/access-conditional-format.md). - -## Recovering from a bad edit - -If a form or report looks wrong after import, the usual causes are an unbalanced -`Begin`/`End` pair or a mangled property value. Restore the `.form` or `.report` -file from git and redo the change in smaller steps. - -To check a structural edit, ask for a re-export after the merge build. A -`git diff` on the file then shows what Access normalized or dropped. diff --git a/source/vcs-agent-docs/queries.md b/source/vcs-agent-docs/queries.md deleted file mode 100644 index 1bc6a5c..0000000 --- a/source/vcs-agent-docs/queries.md +++ /dev/null @@ -1,53 +0,0 @@ -# Query Source Files - -Each query in `queries/` is exported as two files: a `.sql` holding the statement, -and a `.json` holding everything that SQL cannot express. - -## Editing query logic - -Edit the `.sql`. It is the sole source of truth for the query's SQL text, and -changing it is the normal way to change what a query does. - -```sql -SELECT - CustomerID, - CustomerName, - Email -FROM tblCustomers -WHERE Active = True -ORDER BY CustomerName; -``` - -On import the add-in reads both files, generates a temporary `.qdef` in memory, and -hands it to `LoadFromText`. When the SQL is designer-compatible and the `.json` -carries layout data, the query imports in Design View format with table positions -preserved; otherwise it imports as SQL View. Making the SQL incompatible with the -designer — adding a `UNION` or a subquery, for example — causes the layout data to -be ignored and logs a warning, which is expected rather than an error. - -## The companion `.json` - -| Key | Meaning | -|-----|---------| -| `QueryType` | 0 Select, 16 Crosstab, 32 Delete, 48 Update, 64 Append | -| `Connect` | Connection string for pass-through queries, usually an `env:` reference | -| `QueryProperties` | Non-default query properties from the `LvProp` binary blob | -| `Columns` | Column metadata, sorted alphabetically for deterministic output | -| `DesignLayout` | Table positions and window dimensions; present only for queries last saved in Design View | -| `Description` | Object description from DAO document properties | -| `Hidden` | True when the query is hidden in the Navigation Pane | - -Edit these values directly when you need to change a property the SQL cannot carry. -Keep the file valid JSON. - -Pass-through `Connect` values use `env:` references rather than raw ODBC strings; -see `troubleshooting.md` for how those resolve. - -## Legacy files - -Older projects may still contain `.qdef` or `.bas` query files. Import still -accepts them. On export format 4.1.2 the `.bas` file is the import source; a -paired `.sql` is applied only when **Force import of original SQL for queries** -is enabled. To make `.sql` the source of truth, switch to export format 5.0+ -and run a full export — that writes `.sql` plus `.json` and removes the legacy -files. diff --git a/source/vcs-agent-docs/testing.md b/source/vcs-agent-docs/testing.md deleted file mode 100644 index 201e79b..0000000 --- a/source/vcs-agent-docs/testing.md +++ /dev/null @@ -1,110 +0,0 @@ -# Automated Testing - -The add-in includes a test runner that discovers and executes tests in whatever -database is open. Tests assert with `TestAssert`, a drop-in replacement for -`Debug.Assert`. Nothing in the project needs a compile-time reference to the add-in. - -## Setup - -Run `VCS.InstallTestAssertModule` from the Immediate Window to inject the -`modTestAssert` module. `VCS.MigrateDebugAssert` converts existing `Debug.Assert` -calls in bulk. - -## Writing tests - -A test is a parameterless `Public Sub` in a test module: - -```vba -Option Compare Database -Option Explicit -Option Private Module -'@Folder("Tests") - -Public Sub TestDoubleInput() - TestAssert MyFunction(42) = 84, "MyFunction should double input" - TestAssert MyFunction(0) = 0, "Zero input returns zero" -End Sub -``` - -The second `TestAssert` argument is optional context that identifies which -assertion failed, which matters inside loops and shared helpers. - -A module counts as a test module if it carries `'@Folder("...Tests...")` (in -projects using `@Folder` at all) or its name contains `Test`. Within it, only -parameterless `Public Sub` procedures are registered, and only if the module has a -`TestAssert` call. To exclude a helper, make it `Private` or give it a parameter. - -**Class modules** work the same way and add per-test setup and teardown: every test -method gets a fresh instance, so `Class_Initialize` runs before it and -`Class_Terminate` after. Use parameterless `Public Sub` or `Public Function`. Name -test modules `modTest*` or `clsTest*`, and mark standard ones -`Option Private Module`. - -## Prompts during a run - -A run is unattended: a `MsgBox`, `InputBox`, or modal form in code a test reaches -stalls it until someone clicks. `modTestAssert.TestRunActive` is true for the whole -run, so guard anything that waits for a person: - -```vba -If Not TestRunActive Then MsgBox "Import complete.", vbInformation -``` - -Prefer guarding a prompt whose absence changes nothing; where a prompt decides -something, branch to the answer an unattended run should get. A `modTestAssert` -installed before this feature will not have the flag. - -## Running tests - -Run `?VCS.RunTests` from the Immediate Window, or use **Tools > Run Tests** on the -ribbon. After a completed run the runner can re-run only the failures. - -`RunTests` takes an optional `ParamArray` of filters. Each argument resolves in -priority order: exact module name, then suite or `@Folder` value (matching the full -path or its final segment, so `"SQL"` matches `"Tests.SQL"`), then procedure name or -full `Module.Procedure` key, then tag. Prefix an argument with `-` to exclude it. -Inclusions combine with OR, exclusions with AND, and a list containing only -exclusions starts from all tests. - -```vba -?VCS.RunTests("-slow") ' Everything except slow-tagged tests -?VCS.RunTests("Reporting", "-slow") ' The Reporting suite, skipping slow tests -?VCS.RunTests("TestInvoiceTotal") ' One specific procedure -``` - -`RunTests` returns a JSON summary with per-test status, assertion detail, and tags. - -## Tagging - -`'@Tag("name")` annotations categorize tests and are case-insensitive. A -module-level tag sits in the first ~30 lines, before any procedure, and applies to -every test in the module. A procedure-level tag sits at the very top of the -procedure body, before any executable line including `Dim`. The two sets merge. - -## Global suite hooks - -`modTestAssert` may define two optional once-per-run hooks: - -```vba -Public Sub GlobalTestSetup() ' Before the first test, when at least one is selected -Public Sub GlobalTestTeardown() ' After all tests; the results JSON already exists -``` - -`VCS.InstallTestAssertModule` writes empty stubs with inline guidance; if absent -the runner skips them silently. They do not run when no tests are discovered or a -filter matches nothing. An error inside a hook is non-fatal — it goes to the -console, the run continues, and teardown still executes. Per-test -`Class_Initialize` and `Class_Terminate` nest inside these hooks unchanged. - -## Where results land - -| File | Contents | -|------|----------| -| `logs/TestResults_.json` | Per-run results with per-assertion detail | -| `logs/TestRun_.log` | Full console output including timing | -| `test-results/test-state.json` | Merged current state; a partial run updates only the tests it executed and flags the rest `stale` | -| `test-results/test-results.xml` | JUnit XML projection of the state file | -| `test-results/test-results.html` | Self-contained HTML dashboard | - -Both folders are gitignored, so search tools will not find them. See -`troubleshooting.md` for how to list and read them. diff --git a/source/vcs-agent-docs/troubleshooting.md b/source/vcs-agent-docs/troubleshooting.md deleted file mode 100644 index b4103c2..0000000 --- a/source/vcs-agent-docs/troubleshooting.md +++ /dev/null @@ -1,94 +0,0 @@ -# Troubleshooting and Logs - -## Reading the logs - -Every operation writes a timestamped log to the `logs/` subfolder. Check the most -recent one first; it carries the detailed output, timing, and error messages. - -| Pattern | Operation | -|---------|-----------| -| `Export_.log` | Export | -| `Build_.log` | Full build | -| `Merge_.log` | Merge build **and** single-object import | -| `TestRun_.log` | Test run console output | - -A single-object import that seems to have produced no log wrote a `Merge_*.log`. - -**`logs/` and `test-results/` are gitignored**, so tools that respect `.gitignore` -— glob, grep, and semantic search — will silently skip them. Use the shell: - -```powershell -Get-ChildItem -Path "logs" | Sort-Object LastWriteTime -Descending | Select-Object -First 3 -Get-ChildItem -Path "test-results" -``` - -## Import fails with no clear error - -Almost always the encoding changed. Confirm the file still begins with the bytes -`EF BB BF` and re-save it as UTF-8 with BOM. - -## Import fails or objects are corrupted after an edit - -Check the line endings. The file needs CRLF (`0D 0A`), not bare LF. Restore it from -git or re-save with CRLF. - -## Unresolved Git conflict markers - -After a `git merge`, `git stash pop`, or branch switch, a source file may still -contain lines starting with `<<<<<<<` or `>>>>>>>`. The add-in skips that file and -logs: - -`Unresolved Git conflict markers in '' (line N). Resolve the conflict in this -file, then merge again.` - -Open the named file, resolve every conflict section, remove the marker lines, save, -and run merge again. - -## "Object not found" after import - -The `Attribute VB_Name` inside the file no longer matches the filename, usually -because the file was renamed without updating the name stored in it. Make them -agree, without the extension. - -## VBA compile error after import - -Typical causes are a syntax error introduced by an edit, a missing declaration, or -a reference to something that does not exist. - -The compile tools available over MCP report only success or failure — never the -failing module or line. When `vcs_compile_vba` returns `success: false`, or -`vcs_check_vba_compiled` returns `compiled: false`: - -1. Stop. Do not edit more source files or guess at a fix. -2. Ask the user to open the database in Access, open the VBA editor, and choose - **Debug > Compile**. Access jumps to the first error. -3. Ask them to paste the few lines around it. The snippet is usually enough; the - error text is optional. -4. Propose a targeted fix, then re-import and re-compile. - -Working in Access directly, the highlighted line after **Debug > Compile** tells -you the same thing. - -## XML parse error - -Invalid syntax such as an unclosed tag, or an unescaped special character. Validate -the structure and check how special characters are encoded. - -## Build prompts for SQL authentication - -Linked tables and pass-through queries store `env:conn_*` references rather than raw -ODBC strings, in `tbldefs/*.json`, the `Connect` value in `queries/*.json`, and -`db-connection.json`. At build time the add-in resolves each reference against the -`.env` file at this folder's root, which is per-developer and gitignored. - -A prompt means the key is missing from the resolved configuration or the server is -unreachable. Search the build log for `Connection key not found in .env file:`. - -`db-connection.json` only **primes** Access's ODBC cache during import, running one -temporary query per connection so later linked-table imports reuse the cached -credentials. It stores `env:` keys, not connection strings, so do not treat it as a -registry of connections. - -Per-environment layering through an `APP_ENV` selector is supported and documented -in the -[Connections wiki page](https://github.com/joyfullservice/msaccess-vcs-addin/wiki/Connections). diff --git a/source/vcs-agent-docs/vba-modules.md b/source/vcs-agent-docs/vba-modules.md deleted file mode 100644 index 3da8b3d..0000000 --- a/source/vcs-agent-docs/vba-modules.md +++ /dev/null @@ -1,101 +0,0 @@ -# VBA Module Source Files - -Covers `.bas` and `.cls` files in `modules/`, and the `.cls` code-behind files in -`forms/` and `reports/`. - -## Standard modules (`.bas`) - -``` -Attribute VB_Name = "ModuleName" <- Required: must match the filename -'--------------------------------------------------------------------------------------- -' Module : ModuleName <- Optional comment header -' Purpose : Description here -'--------------------------------------------------------------------------------------- -Option Compare Database <- Optional -Option Explicit <- Optional - -Public Sub MySub() - ' Code starts after any Option statements -End Sub -``` - -Add and edit procedures, functions, and declarations freely. Leave the -`Attribute VB_Name` line alone; it must equal the filename without its extension. - -`Option` statements are not required. Some projects omit them entirely, so match -whatever the surrounding modules do rather than adding them. - -## Class modules (`.cls`) - -``` -VERSION 1.0 CLASS <- Required header block -BEGIN - MultiUse = -1 'True -END -Attribute VB_Name = "ClassName" <- Required: must match the filename -Attribute VB_GlobalNameSpace = False <- Required (legacy, but must be present) -Attribute VB_Creatable = False -Attribute VB_PredeclaredId = False <- True gives the class a default instance -Attribute VB_Exposed = False <- True exposes it to other projects -Option Compare Database <- Optional -Option Explicit <- Optional - -Private m_Value As String - -Public Property Get Value() As String -Attribute Value.VB_Description = "Returns the value" <- Member attribute - Value = m_Value -End Property -``` - -Edit the code and comment headers. Leave the `VERSION` block and the module-level -`Attribute VB_*` lines exactly as they are. - -## Member attributes - -Attributes can also appear **inside** procedures and properties, carrying metadata -that the VBA editor hides but the Object Browser displays. They go on the line -immediately after the `Sub`, `Function`, or `Property` declaration: - -```vba -Public Function GetItem(Index As Long) As Variant -Attribute GetItem.VB_Description = "Returns item at specified index" -Attribute GetItem.VB_UserMemId = 0 - GetItem = m_Items(Index) -End Function -``` - -| Attribute | Effect | -|-----------|--------| -| `Attribute [Member].VB_Description = "text"` | Description shown in the Object Browser | -| `Attribute [Member].VB_UserMemId = 0` | Makes this the class's default member | -| `Attribute [Member].VB_UserMemId = -4` | Returns an enumerator, enabling `For Each` | - -Reword the description text if it is wrong. Do not change the attribute syntax or -the member name it refers to; the name must match the procedure it sits under. - -## Form and report code-behind - -When the **Split Layout from VBA** option is on, a form's or report's code lives in -its own `.cls` beside the layout file: - -``` -VERSION 1.0 CLASS -BEGIN - MultiUse = -1 'True -END -Attribute VB_Name = "Form_frmMyForm" <- Must be "Form_" (or "Report_") + object name -Attribute VB_GlobalNameSpace = False -Attribute VB_Creatable = True -Attribute VB_PredeclaredId = True -Attribute VB_Exposed = False -Option Compare Database - -Private Sub Form_Load() - ' Event handler code -End Sub -``` - -Edit event handlers and procedures here as you would in any class module. When the -option is off, the code is instead inside the `.form` or `.report` file under a -`CodeBehindForm` line. diff --git a/source/vcs-index.idx b/source/vcs-index.idx deleted file mode 100644 index 90d2ffc549df13e0d876501ea0a06aecd8437dbd..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 14602 zcmb`OTZm*w9mXrs=qfQvTqHMi2`VOLH#6OH>m($b&Fp4FcC(wzxQS>oOy4$%dvj)X zb9qzW1YcATK_nvhCi;?xAR_ppNK^zb2qKcipgsk~fDZw`UwvJDYO2rKnT}4=({rlN zsq@uW|I1hZI&j%T==VQOPe(y~>{>{o4K7HM&{f@IQe2})Q zbiV|s)m3lc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