Replacing String PropertiesYou can use the FindReplace object to replace string properties of an object at run time. The following example uses the FindReplaceInObject method to accomplish this. The code in this example searches through a group of objects within a picture and changes their data sources by replacing AO with AI. To search for AO data sources in a picture and replace with them AI data sources:
Dim Success As Boolean FindReplace.FindReplaceInObject MyGroup, 4, "AO", "AI",_ Success 'The 4 indicates to search through data sources only.
The FindReplace object searches MyGroup and changes all instances of AO to AI. Because the Data link's data source falls outside of MyGroup, it remains unchanged. See AlsoCreating a Direct Connection to an Object Changing a Text Object's Caption Changing a Variable Object's Current Value How Do I... |
Important Notice You do not have the latest version of iFIX! You are missing out on the newest capabilities and enhanced security. For information on all the latest features, see the iFIX product page. For more information on upgrades, contact your GE Digital sales agent or e-mail [email protected]. For the most up-to-date documentation, go here. |