rwblinn Well-Known Member Licensed User Longtime User Jul 1, 2021 #1 In the B4X Library GPRMC to be used for B4R declared a Type, like B4X: Sub Process_Globals Type TDate (Stamp As Double, Day As Int, Month As Int, Year As Int) Public DateStamp As TDate When using the b4xlib in a B4R program, the type members are not visible with error: B4X: Main - 56: Unknown type: TDate<br />Are you missing a library reference? The b4xlib object is declared as B4X: Private gpsRMC As GPRMC Expected accessing the Type as B4X: gpsRMC.DateStamp.Day ... All members are visible, except the Type ones. Any hint how to access the type members? NOTE: When using the library BAS file as a module, the type is accessible.
In the B4X Library GPRMC to be used for B4R declared a Type, like B4X: Sub Process_Globals Type TDate (Stamp As Double, Day As Int, Month As Int, Year As Int) Public DateStamp As TDate When using the b4xlib in a B4R program, the type members are not visible with error: B4X: Main - 56: Unknown type: TDate<br />Are you missing a library reference? The b4xlib object is declared as B4X: Private gpsRMC As GPRMC Expected accessing the Type as B4X: gpsRMC.DateStamp.Day ... All members are visible, except the Type ones. Any hint how to access the type members? NOTE: When using the library BAS file as a module, the type is accessible.
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2021 #2 Can you upload the b4xlib file?
rwblinn Well-Known Member Licensed User Longtime User Jul 1, 2021 #3 Erel said: Can you upload the b4xlib file? Click to expand... As the issue is resolved, the library will be added to the forum B4R Libraries. Last edited: Jul 1, 2021
Erel said: Can you upload the b4xlib file? Click to expand... As the issue is resolved, the library will be added to the forum B4R Libraries.
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2021 #4 rwblinn said: The b4xlib object is declared as Click to expand... You don't need to declare anything. The code from the b4xlib is added to your project exactly like any other code.
rwblinn said: The b4xlib object is declared as Click to expand... You don't need to declare anything. The code from the b4xlib is added to your project exactly like any other code.
rwblinn Well-Known Member Licensed User Longtime User Jul 1, 2021 #5 Thanks for testing and the hint. Found out following: rGPRMC.b4xlib in ..\B4R Additional Libraries folder = GPRMC.TimeStamp.Hour ... visible. rGPRMC.b4xlib in ..\B4R Additional Libraries folder\rGPRMC = GPRMC.TimeStamp.Hour ... NOT visible. So have moved rGPRMC.b4xlib from its subfolder ..\B4R Additional Libraries folder\rGPRMC\ to ..\B4R Additional Libraries folder and it works.
Thanks for testing and the hint. Found out following: rGPRMC.b4xlib in ..\B4R Additional Libraries folder = GPRMC.TimeStamp.Hour ... visible. rGPRMC.b4xlib in ..\B4R Additional Libraries folder\rGPRMC = GPRMC.TimeStamp.Hour ... NOT visible. So have moved rGPRMC.b4xlib from its subfolder ..\B4R Additional Libraries folder\rGPRMC\ to ..\B4R Additional Libraries folder and it works.
Erel B4X founder Staff member Licensed User Longtime User Jul 1, 2021 #6 Yes, it should be in the main folder.