/* Select index 0 for the Trendcontrol with name "TrendControl"*/
SetPropWord(lpszPictureName, "TrendControl", "TrendIndex", 0);
/* Set variable for this index */
SetPropChar(lpszPictureName, "TrendControl", "TrendTagName", "Prozesswertarchiv\\Archivvariable_1");