DBsetVariableText

Top  Previous  Next

An initialization variable as a text give.

In the data bank initialized variables can be stored. This are basically only sign chains which are identified with a name. The values are given with the function InitializeParameter/INI at user level. The values with DBsetInitialValue... are put on programmer's level. DBsetVariableText writes such an initialization in the data bank. Functions like DBsetInitialValueLong hand over a long value which is stored away with the function DBsetVariableText then as a sign chain.

Parametre

root (PROOT) [IN]

Act on the open data bank.

name (char *) [IN]

Sign chain gives the name under which the variable is filed.

value (char *) [IN]

The value, it is always stored as a sign chain.

art (int) [IN]

About the Flags in art the access to the variable should be steered. There are three constants which regulate the kind of the access. Variables can be put worldwide, i.e. they are freely accessible. Variables can be put as hidden, i.e. they are not visible at the user level (with the user function InitializeParameter). Or they are put as local, then they are visible only for single functions.

Result

---

Declaration

#include "database.h"

 

void DLLENTRY DBsetVariableText (

PROOT root,

char * name,

char * value,

int art

Constants

VAR_ART_LOCAL

VAR_ART_GLOBAL

VAR_ART_HIDDEN

Related functions

DBgetVariableText