Hello everyone, it"s been a while.
I am teaching my self to use B$XPages and to comply a simple class module to a Library.
I have created two class modules named "Help" and "SizeToFit"
In B$XMainPage, under Class_Globals, I declare the two classes,
Then, under Private Sub B4XPage_Created (Root1 As B4XView), I Initialize the two "instances." (I think that's the correct terminology)
Later, I reference "stf" as shown in the code below
When I compile and run to my phone, everything works correctly. No errors.
However, when I try to Compile to Library (Alt+5), I receive the following error:-
B4A Version: 12.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: help
Are you missing a library reference?
Error occurred on line: 42 (B4XMainPage)
Private BPLHelpAs Help
I am stumped, that why I am asking for help.
I have tried searching this forum for over a week, but I can not find a simple step by step guide for using Compile to Library.
Also, I have placed #ExcludeFromLibrary:True at the top of BRXMainPage and Help modules.
I know there is B4X.lib, but again, a simple step by step would be helpful, but that's for another thread.
Gavin
I am teaching my self to use B$XPages and to comply a simple class module to a Library.
I have created two class modules named "Help" and "SizeToFit"
In B$XMainPage, under Class_Globals, I declare the two classes,
Class declaration:
Sub Class_Globals
Private BPLHelp As Help
Private stf As SizeToFit
End Sub
Then, under Private Sub B4XPage_Created (Root1 As B4XView), I Initialize the two "instances." (I think that's the correct terminology)
Later, I reference "stf" as shown in the code below
Initialization:
Private Sub B4XPage_Created (Root1 As B4XView)
BPLHelp.Initialize
stf.Initialize
lblStart.TextSize = stf.Ideal_Text_Size(lblStart.Text, lblStart, 30, "S")
When I compile and run to my phone, everything works correctly. No errors.
However, when I try to Compile to Library (Alt+5), I receive the following error:-
B4A Version: 12.50
Parsing code. Error
Error parsing program.
Error description: Unknown type: help
Are you missing a library reference?
Error occurred on line: 42 (B4XMainPage)
Private BPLHelpAs Help
I am stumped, that why I am asking for help.
I have tried searching this forum for over a week, but I can not find a simple step by step guide for using Compile to Library.
Also, I have placed #ExcludeFromLibrary:True at the top of BRXMainPage and Help modules.
I know there is B4X.lib, but again, a simple step by step would be helpful, but that's for another thread.
Gavin