Click or drag to resize

ApiSessionRefactorVariableReferences Method

Searches expression fields for variable that are named like a certain variable but not actually linked to it. A so called stray variable reference is created when a variable is deleted while still in use by an expression field. When creating a new variable by the same name, that old reference is weak-linked to the new variable by its name. Stray references will not react on renaming or moving unless they are linked to the actual variable by using this function. Expression fields containing such stray variables will be modified and are claimed during the course of this function. Objects in partitions that are claimed by other users will be ignored. The affected partitions will not be unclaimed automatically.

Namespace:  Articy.Api
Assembly:  ArticyApp (in ArticyApp.dll) Version: 1.0.0
public List<ObjectProxy> RefactorVariableReferences(
	ObjectProxy aVariableOrSet,
	bool aOnlyStrayReferences = true


Type: Articy.ApiObjectProxy
Variable or VariableSet to refactor
aOnlyStrayReferences (Optional)
Type: SystemBoolean
Set to false to modify all usages of aVariableOrSet. Set to true to only modify stray references.

Return Value

Type: ListObjectProxy
list of affected objects
See Also