« Back to Product

Documentation

AC_ChangeVariableID

Require: IP-Symcon >= 3.0

 boolean AC_ChangeVariableID (int $InstanceID, int $OldVariableID, int $NewVariableID) 

Parameters

InstanceID

ID for the archive

OldVariableID

ID of the variable to be migrated

NewVariableID

ID of the new variable

Returns

True if successful, otherwise False

Description

This function migrates the data of the variable with the ID OldVariableID into the variable with the ID NewVariableID.

Warning

The variable with the ID NewVariableID must not be logged. This also means that no old data records may be available through logging.

Example

// The data of the 34567 variable are migrated to the 56789 variable
AC_ChangeVariableID(12345, 34567, 56789);
Any questions?