Obtaining the parent code
This example, used in a workflow script, retrieves the parent code of an object such as a formula or project.
Dim oPCode As Object = ObjMethod("", "", "ParentCode")
It returns a string array containing the components of the parent's key.
The result is either
"Code"
or
"Code\Version"
.
Dim sPCode As String = String.Join("\", oPCode)
If no parent exists for the current object, then the
ParentCode
method returns
Nothing
.