F fishwolf Well-Known Member Licensed User Longtime User Dec 18, 2014 #1 i cannot use a type structure from module. why? Code: Copy 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?
i cannot use a type structure from module. why? Code: Copy 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?
Erel B4X founder Staff member Licensed User Longtime User Dec 19, 2014 #2 It is a bug. It is fixed for the next update. For now you can write: Code: Copy Dim tr As TypeRecord = TabPeople(Ind) tr.ID = 0 Upvote 0
It is a bug. It is fixed for the next update. For now you can write: Code: Copy Dim tr As TypeRecord = TabPeople(Ind) tr.ID = 0