Thanks for your reply. I was able to work it out stealing some GS code. This is what I have done in case it helps anyone. This gives me two returned values. "Door Type" and "Door Number"
DoorNumber = ""
DoorType = ""
_stPropertyValue = ""
DIM parentProperties[]
tom = REQUEST ("Properties_Of_Parent", "", parentProperties)
_numProperties = vardim1(parentProperties)
for i = 1 to _numProperties
if parentProperties = "Door Number" then
DoorNumberID = parentProperties[i-3]
endif
if parentProperties = "Door Type" then
DoorTypeID = parentProperties[i-3]
endif
next i
_stPropertyID = DoorNumberID
gosub "getPropertyValue"
DoorNumber = _stPropertyValue
_stPropertyValue = ""
_stPropertyID = DoorTypeID
gosub "getPropertyValue"
DoorType = _stPropertyValue
!=============================
!MAIN LABEL CODE.....
end
! ==============================================================================
"getPropertyValue":
! ==============================================================================
dim propertyValues[]
m = REQUEST ("Property_Value_Of_Parent", _stPropertyID, _typeValue, dim1, dim2, propertyValues)
if m > 3 then
for j = 1 to vardim1(propertyValues)
if j > 1 then
_stPropertyValue = _stPropertyValue + "; "
endif
if _typeValue = 4 then
_stPropertyValue = _stPropertyValue + propertyValues
else
if _typeValue = 3 then
_stPropertyValue = _stPropertyValue + str ("%.2", propertyValues)
else
if _typeValue = 2 then
_stPropertyValue = _stPropertyValue + str ("%.0", propertyValues)
else
if propertyValues > 0 then
_stPropertyValue = _stPropertyValue + `TRUE`
else
_stPropertyValue = _stPropertyValue + `FALSE`
endif
endif
endif
endif
next j
else
_stPropertyValue = "<" + `Property Value` + ">"
endif
return