Reply To: Use Properties from Property Manager

Home Forums Problems and solutions in GDL Lists and schedules Use Properties from Property Manager Reply To: Use Properties from Property Manager

#2888
Joachim Sühlo
Participant

How do I set up the script to use the Property Name as Value for a VALUES command in the new REQUEST (“Properties_Of_Parent) command (for a door marker)?
Following does not work:

DIM _sTnCParamData[][5], _auswahl[], _parentProperties[]
FOR i = 1 TO 5
	_sTnCParamData[1][i] = ""
NEXT i

PROPERTY_FOLDER		= 1			! NEW: GROUP
PROPERTY_ID			= 2			! NEW: ID
PROPERTY_NAME		= 3			! NEW: NAME
PROPERTY_VALUE		= 4			! NEW: VALUE
PROPERTY_TYPE		= 5			! BRAND NEW TYPE

n = REQUEST ("Properties_Of_Parent", "", _parentProperties)
_numProperties = vardim1(_parentProperties) / 4
_sumParamNum = 1

for i = 1 to _numProperties
	_sTnCParamData[_sumParamNum][PROPERTY_FOLDER] = _parentProperties[4 * (i - 1) + 3]
	_sTnCParamData[_sumParamNum][PROPERTY_ID]   = _parentProperties[4 * (i - 1) + 1]
	_sTnCParamData[_sumParamNum][PROPERTY_NAME] = _parentProperties[4 * (i - 1) + 4]
	_sTnCParamData[_sumParamNum][PROPERTY_VALUE] = ""
	_sTnCParamData[_sumParamNum][PROPERTY_TYPE] = _parentProperties[4 * (i - 1) + 2]
	_auswahl[_sumParamNum]			= _sTnCParamData[_sumParamNum][PROPERTY_NAME]
	_sumParamNum = _sumParamNum + 1	
next i

VALUES "text_auswahl" _sTnCParamData

GDL Object Developer
b-prisma
MAC OSx 10.12