coding-diva-advanced

Reference advanced DIVA language patterns for HTTP, JSON, .NET, and module overloading.

6|Updated May 11, 2026
One-click install
npx skills add https://github.com/divalto/divalto-ia-devkit --skill coding-diva-advanced-divalto
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coding-diva-advanced
Source: https://github.com/divalto/divalto-ia-devkit/tree/main/plugins/divalto-devkit/skills/coding-diva-advanced
Command: npx skills add https://github.com/divalto/divalto-ia-devkit --skill coding-diva-advanced-divalto

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? DIVA developers working beyond basic syntax lack a consolidated reference for advanced patterns like REST calls, JSON/XML parsing, .NET DLL integration, module overloading (OverWrite), and inter-module communication, leading to runtime errors and resource leaks. ## Core Features & Use Cases - Eight Advanced Domains: Covers HTTP/REST (WebRequest API), JSON/XML/HMP parsing, .NET Assembly integration, OverWrite/OverWrittenBy overloading, module table (mtab) validation, advanced RecordSql (Reader, Collate, Paging), Ping/Pong tunnels, and Harmony keyboard/mouse events. - Anti-Pattern Guardrails: Documents DIVA-specific traps such as ; being a comment, OUI = 2 boolean semantics, mandatory WebRequestClose/JsonClose calls, and the required Where.Equal_* + AddAndCondition triplet. - Use Case: When asked to overload the standard zoom gtpz099.dhsp to add a control in ZoomArret, consult this reference to apply the U-suffix naming convention, call Standard.ZoomArret() first, and handle Harmony.Key event codes correctly. ## Quick Start Ask the AI to write DIVA code that calls a REST API, parses the JSON response, and iterates the results using the Reader pattern.

Frequently Asked Questions about coding-diva-advanced

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I make a REST API call in DIVA?

Create a ticket with WebRequestNew(), set the URL and method with WebRequestSetUrl and WebRequestSetMethod, add headers, then call WebRequestSend. Always call WebRequestClose afterward to avoid resource leaks.

How to overload a standard DIVA zoom module with OverWrite?

Create a file with the U suffix (e.g., gtpz099u.dhsp) declaring OverWrite of the standard module, redeclare any records or constants locally, and omit visibility modifiers on overloaded procedures. Always call Standard.ProcedureName() first before adding specific logic.

Why is my RecordSql Where filter being ignored in DIVA?

A Where.Equal_* call alone does nothing; you must chain it with AddAndCondition(vCondition) and call Where.AddCondition before the Select. Without this triplet, the condition variable stays empty and the SQL filter is never applied.

Can DIVA call .NET DLL methods?

Yes, via AssemblyLoad, AssemblyGetMethod, and AssemblyMethodInvoke. The .NET method must be public static with a single string parameter and string return, both using the HMP key-value format.

Why does my DIVA overload fail with 'Erreur 99: Mot inconnu'?

Constants, records, and RecordSql declarations from the standard module are not inherited by an OverWrite file. Re-include the .dhsp providing the constant or redeclare it locally in the overload file.

Does DIVA support threads or exceptions like Try/Catch?

No. DIVA has no exceptions, so use return codes with ErrorFatal/ErrorWarning instead of Try/Catch. For parallel execution, use ProgramCall with Ping/Pong tunnels rather than threads.