Create a variable in the project information with the specified name and assign a value to it.

int iret = ac_request("autotext","create", string svarname, string svalue);


Here:

svarname - new variable name,

svalue - the value for this variable,

iret - the result of the function execution. If 0, then the variable is created.


Example.

Create a new variable "Object address" in the project information and record the original value.


string svaluename = "Object address";
string newvalue;
snewvalue = "Moscow, Shabolovka, 37";
int iret = ac_request("autotext","create", svarname, snewvalue);
if(iret == 0)
{
   cout << "Variable successfully created";
}
else
{
   cout << "Create variable " << svaluename << " failed";
}