Hi guys,
I need to store sql table structure. Using a map, with this declaration
Or using Custom Type and array
Which one is easier to process, such as retrieve its value, delete, update, etc.
I need to store sql table structure. Using a map, with this declaration
B4X:
Sub Globals
Private Fields() As Map
Private Tables() As Map
End Sub
Fields = Array As Map (InitFields("ID",3),InitFields("DT",1),InitFields("FRM_N",1))
Tables = Array As Map(InitTables("MEM_FRM",Fields))
Or using Custom Type and array
B4X:
Sub Globals
Type Field(Nm As String,Typ As Byte)
Type Table(Nm As String,Field() As Field)
Private Fields() As Field
Private Tables() As Table
End Sub
Fields = Array As Field(InitFields("ID",3),InitFields("DT",1),InitFields("FRM_N",1))
Tables = Array As Table(InitTables("MEM_FRM",Fields))
Which one is easier to process, such as retrieve its value, delete, update, etc.