iOS Question Type cross module

fishwolf

Well-Known Member
Licensed User
Longtime User
i cannot use a type structure from module.
why?
B4X:
main module
Type TypeRecord( _
  ID As Int, _
  Name As String)
Dim TabPeople(10) As TypeRecord

into main module work fine
  For Ind = 0 To 10
     TabPeople(Ind).ID = 0
   Next

into other module

  For Ind = 0 To 10
    Main.TabPeople(Ind).ID = 0
  Next

the compiler return tis error

property 'ID' not found on object of type 'NSObject *'

why?
 
Top