B4J Question [Solved] Project with 2 pages B4XPagesTwoPages

Roger Daley

Well-Known Member
Licensed User
Longtime User
Hi All,

In trying to get to grips with B4XPages I'm working my through the above example and hit this problem.
The sub is straight out of the tutorial but comes up with "FillComboBox" as an undeclared variable. I can't find it declared in the project, is it supposed to be a declared variable or am I missing a library, .... or

B4XPages:
Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("MainPage")
   
    Page1.Initialize 'initializes Page1
    B4XPages.AddPage("Page 1", Page1) 'adds Page1 to the B4XPages list
   
   
    FillComboBox
End Sub



Regards Roger
 

klaus

Expert
Licensed User
Longtime User
FillComboBox is a Sub routine, it is mentioned in the middle of page 26.
There are three routines: FillCombobox, btnPage1_Click and xcbxMainPage_SelectedIndexChanged.
Their code is not replicated in the booklet.
Did you download the booklets and the source codes ?
If not, you can download the booklets with all the source code or only all the source codes without the booklets.
The code shown in the booklet is an explanation of the total code, not all routines are shown.
 
Upvote 0

Roger Daley

Well-Known Member
Licensed User
Longtime User
Klaus can probably help more here.

In the meantime you can start with this example: https://www.b4x.com/android/forum/t...framework-for-managing-multiple-pages.118901/
Thanks


Thanks Klaus,
I had all downloaded but was working my through the booklet. Now that I have opened up the source code all is clear and the booket reads a lot better.

Many thanks Roger.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…