DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the type of a Group Property?

Diadem 9.x
How can get the type of a existing Group Property?
I could't find any interactive or script command for it.
0 Kudos
Message 1 of 3
(3,482 Views)
Try this Command:
GroupPropInfoGet
Obtains information about a property of a channel group in the Data Portal.


Call GroupPropInfoGet(TargetGroupIndex, PropName)
Input Parameters
TargetGroupIndex Specifies the index of a target channel group in the Data Portal.
PropName Specifies the name of a property in a particular context.

DIAdem saves the results in the variables DataType, PropIsFixed, and PropIsReadOnly.

Example
The following example displays various details for the properties of a group.

TargetGroupIndex = GroupIndexGet("EXAMPLE")
For iLoop = 1 to GroupPropCount(TargetGroupIndex)
Call GroupPropInfoGet(TargetGroupIndex , GroupPropNameGet(TargetGroupIndex ,iLoop))
Call MsgBoxDisp ("Property: " & GroupPropNameGet(TargetGroupIndex ,iL
oop) & VBCrLf & _
"with data type: " & DatatypeAsText(DataType) & VBCrLf &_
"is fixed: " & PropIsFixed & VBCrLf &_
"is read only: " & PropIsReadOnly )
Next
'==== Function to convert data type from integer into text ===
Function DatatypeAsText(iMyType)
Select Case iMyType
Case DataTypeFloat64
DatatypeAsText = "Float64"
Case DataTypeInt16
DatatypeAsText = "Int16"
Case DataTypeInt32
DatatypeAsText = "Int32"
Case DataTypeString
DatatypeAsText = "String"
Case DataTypeUInt8
DatatypeAsText = "UInt8"
End Select
End Function
Message 2 of 3
(3,482 Views)
Thanks, I've overlooked this command.
0 Kudos
Message 3 of 3
(3,482 Views)