Switch to: V12V11V10V9V8V7V6V5

Valentina.NET Example Guide Introduction

Description of Example Categories

This document contains a list of available examples and comments to them. There are several categories of the examples:

Common Examples - contains code examples that show features and techniques common for both the Valentina SQL and Valentina API methods.

Valentina SQL Examples - contains the examples that show how to work with Valentina databases using SQL.

Valentina API Examples - contains the examples that show how to work with Valentina databases using native Valentina API methods.

Valentina Classes Examples - contains the examples that show how to manage Valentina database using Valentina Classes. Only selected products support Valentina Classes.

Also you can see folder “Examples/Shared“. This folder contains Valentina.net modules and classes that are used by several examples. Maybe you will find them useful to plug into your own project or use them as a base to develop your own similar modules.

Local and Client-Server modes

Please note, that practically all above examples are developed to be able to work in both LOCAL and CLIENT - SERVER modes.

To switch modes you should open in your project module ExampleTools, go to the method initValentina() and set the variable gClient to be TRUE.

gClient = true  

To be able to work in different modes, the ExampleTools module contains few methods, which do work according to the value of gClient flag.

ATTENTION: Valentina Examples cannot work with Valentina Server that runs using license_emb_dddddd file, because VServer in this case expects connection signature, which Examples do not provide. Please use Examples only with Vserver that runs with license_mac_dddd or license_win_dddd files.