So how deep can you nest custom types ?
I have an enum for color B4A style I want to make that a type for another custom type...
Current attempt doesnt recognize colors
Original before I wanted to make the colors part of the other type:
I have an enum for color B4A style I want to make that a type for another custom type...
Current attempt doesnt recognize colors
PHP:
Type t_deviceStatusColor (Blue As Colors, Red As Colors, Orange As Colors, Green As Colors)
Dim devStatusColor As t_deviceStatusColor
devStatusColor.Blue = Colors.RGB(0,0,200):devStatusColor.Red = Colors.RGB(200,0,0):devStatusColor.Orange = Colors.RGB(255,100,0):devStatusColor.Green = Colors.RGB(0,200,0)
Type t_deviceStatusObject(deviceName As String, isActive As Boolean, _
statusColor As t_deviceStatusColor, val3 As String, val4 As String, _
val5 As String, val6 As String)
Original before I wanted to make the colors part of the other type:
PHP:
Type t_deviceStatusObject(deviceName As String, _
isActive As Boolean, _
val2 As String, _
val3 As String, _
val4 As String, _
val5 As String, _
val6 As String)
Type t_deviceStatusColor (Blue As Int, Red As Int, Orange As Int, Green As Int)
Dim devStatusColor As t_deviceStatusColor
devStatusColor.Blue = 0:devStatusColor.Red = 1:devStatusColor.Orange = 2:devStatusColor.Green = 3
Last edited: