How to equate string type variables in Vijeo Designer application.


29 June 2022

Generally arithmetic operators like +,-,*,== etc, are applicable on registers like INT, DINT, REAL etc, holding arithmetic values.

 The script method has to be used for equating string variables. Refer chapter "String Methods" available under Online Help Menu of the Vijeo Designer software. This chapter provides details for implementing different type of operations on string type variables. 

 Sample script for equating string type variables.


String text3;     // where text3 is a local script variable//


text3 = STRING01.getStringValue();     // where STRING01 is external VJD variable//


STRING02.write(text3);      // where STRING02 is external VJD variable//