Queue, Prop:Type

The return value is numeric, i was expecting text return value. Group/Byte/String, etc.

Using clarion6 rtl for this one.

Can anyone help me with this.

Thanks.

Can you provide the line of code in question?

I thought, Prop:type is for controls and I not aware it would work on just the variables.

If it is a control (IE ?Control{prop:type} you are referring to, then it would always return a numeric. See Equates.clw and look for ! “Parameter to CREATE / Return value from PROP:type”. All the equates are defined in there.

I think you are correct Mathew. PROP:Type returns the numeric value of the type of control being queried.

IF ?MyField{PROP:Type} = CREATE:Check !Check control type
?MyField{PROP:TrueValue} = ‘T’
?MyField{PROP:FalseValue} = ‘F’
END

1 Like

' Type['& xWin$xFEQ{Prop:Type} & ']=['& SELF.DescribeType(xWin$xFEQ{Prop:Type}) &']'
above is a line in the Debuger.ShowControl method
see the .DescribeType method in the debuger class

Richard,

Not sure what RTL function are you using. But I think, you are looking for the following equates from EQUATES.CLW file

! Data Type Equates for use with file{PROP:SupportsType, DataType:n}

  ITEMIZE(1),PRE(DataType)
BYTE              EQUATE
SHORT             EQUATE
USHORT            EQUATE
DATE              EQUATE
TIME              EQUATE
LONG              EQUATE
ULONG             EQUATE
SREAL             EQUATE
REAL              EQUATE
DECIMAL           EQUATE
PDECIMAL          EQUATE
BFLOAT4           EQUATE(13)
BFLOAT8           EQUATE
STRING            EQUATE(18)
CSTRING           EQUATE
PSTRING           EQUATE
MEMO              EQUATE
GROUP             EQUATE
BLOB              EQUATE(27)
  END