Public Type conversion vb6>b4a

holdemadvantage

Active Member
Licensed User
Longtime User
Sorry for this noob question but i have to convert one of my vb6 project to b4a and i have to convert this

HTML:
Public Type Giocatore
    Carta As Integer
    Seme As Integer
    FileCard As String
End Type

then in code i have to use vale like this

HTML:
Dim CartaMazzo(1 To 40) As Giocatore
CartaMazzo(i).Carta

how to convert this? thanks in advance
 

barx

Well-Known Member
Licensed User
Longtime User
In Globals or Process Globals (I usually do in process Globals) put

B4X:
Type Giocatore(Carta As Integer, Seme As Integer, FileCard As String)

As for the array, I think you would be better off with a list. They are a little more powerful than array.
 
Upvote 0
Top