S Sunny New Member Jun 27, 2013 #1 Hello All, I'am new to B4A. I want to know how to create an array but in a Type mode. For exemple in vb6 I create This : Type Name Variable1 As String Variable2 As Integer Variable3 As Double End Type Then you assigned the Type to a variable or Array : Dim arrayName() As Name Then I could Use it like this For I = 0 To 5 arrayName(I).Variable1 = "Var" & I arrayName(I).Variable1 = I arrayName(I).Variable1 = I + 0.05 Next I I was wondering if there's a way to do this in B4A ?? Thanks for the Response
Hello All, I'am new to B4A. I want to know how to create an array but in a Type mode. For exemple in vb6 I create This : Type Name Variable1 As String Variable2 As Integer Variable3 As Double End Type Then you assigned the Type to a variable or Array : Dim arrayName() As Name Then I could Use it like this For I = 0 To 5 arrayName(I).Variable1 = "Var" & I arrayName(I).Variable1 = I arrayName(I).Variable1 = I + 0.05 Next I I was wondering if there's a way to do this in B4A ?? Thanks for the Response
D drachmad Member Licensed User Longtime User Jun 27, 2013 #2 Type Center(x As Float, y As Float) Private Point(9) As Center See my example at: http://www.b4x.com/forum/additional-libraries-classes-official-updates/30490-class-simple-unlock-pattern.html Note: next time better have a more descriptive title, e.g. User define type and array. Usually there are more suggestion. Upvote 0
Type Center(x As Float, y As Float) Private Point(9) As Center See my example at: http://www.b4x.com/forum/additional-libraries-classes-official-updates/30490-class-simple-unlock-pattern.html Note: next time better have a more descriptive title, e.g. User define type and array. Usually there are more suggestion.