The Portrate Interview Engine

DataContext.ReplaceVariableRefs Method 

Searches the given string for variable references, and when found, replaces them with their actual values. If the value is not found then the variable ref is replaced with an empty string.

[Visual Basic]
Public Function ReplaceVariableRefs( _ 
   ByVal var As String _ 
) As String
[C#]
public string ReplaceVariableRefs(
   string var
);
[C++]
public: String* ReplaceVariableRefs(
   String* var
);
[JScript]
public function ReplaceVariableRefs(
   String var
): String;

Parameters

var
The string containing the variable refs

Return Value

The string with the variables replaced with values

See Also

DataContext Class | Portrate.Interview.Model Namespace