Pflichtfeld Active Member Licensed User Apr 1, 2020 #1 Is it possible, to fill a User Type like B4X: Type Grinder_type (Name As String, P0ToSuppInlet As Float, P0ToSuppCenter As Float, _ stoneD As Float,dmSupport As Float, dmjig As Float) in one? Something like B4X: Dim gr As Grinder_type=("First",10,20,30,40,50) does not work. I have the array-example in mind... B4X: Dim Days() As String Days = Array As String("Sunday", "Monday", ...)
Is it possible, to fill a User Type like B4X: Type Grinder_type (Name As String, P0ToSuppInlet As Float, P0ToSuppCenter As Float, _ stoneD As Float,dmSupport As Float, dmjig As Float) in one? Something like B4X: Dim gr As Grinder_type=("First",10,20,30,40,50) does not work. I have the array-example in mind... B4X: Dim Days() As String Days = Array As String("Sunday", "Monday", ...)
Erel B4X founder Staff member Licensed User Longtime User Apr 1, 2020 #2 Pflichtfeld said: Dim Days() As String Days = Array As String("Sunday", "Monday", ...) Click to expand... Why 2 lines? B4X: Dim Days() As String = Array As String("Sunday", "Monday", ...) Pflichtfeld said: in one? Click to expand... Yes: Upvote 0
Pflichtfeld said: Dim Days() As String Days = Array As String("Sunday", "Monday", ...) Click to expand... Why 2 lines? B4X: Dim Days() As String = Array As String("Sunday", "Monday", ...) Pflichtfeld said: in one? Click to expand... Yes:
Pflichtfeld Active Member Licensed User Apr 1, 2020 #3 What a cool implementation! Chapeau! Thank you! btw: Must I initialize such a type? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Apr 2, 2020 #4 Pflichtfeld said: Must I initialize such a type? Click to expand... It is initialized inside the generated code. You don't need to do it yourself. Upvote 0
Pflichtfeld said: Must I initialize such a type? Click to expand... It is initialized inside the generated code. You don't need to do it yourself.