Hi
this is my code ,have 3 module : main,frmTest1,frmMain
if i click btnTest1 goto frmmMain 10%y value is 54.8
Why is the value not 56.8?
main module code
frmTest1 module code
frmMain module code
this is my code ,have 3 module : main,frmTest1,frmMain
if i click btnTest1 goto frmmMain 10%y value is 54.8
Why is the value not 56.8?
main module code
B4X:
Private Sub Application_Start (Nav As NavigationController)
NavControl = Nav
Page1.Initialize("Page1")
NavControl.NavigationBarVisible = False
NavControl.ToolBarVisible = False
frmTest1.show
' frmMain.show
End Sub
frmTest1 module code
B4X:
Public Sub Show
If pg.IsInitialized = False Then
pg.Initialize("pg")
pg.RootPanel.LoadLayout("frmTest1")
End If
Main.NavControl.ShowPage(pg)
Log("----------------- frmTest -----------------")
Log("frmTest1_10%y:" & 10%y)
End Sub
Sub btnTest1_Click
frmMain.Show
End Sub
frmMain module code
B4X:
Public Sub Show
If pg.IsInitialized = False Then
pg.Initialize("pg")
pg.RootPanel.LoadLayout("frmMain")
End If
Main.NavControl.ShowPage(pg)
Log("----------------- frmMain -----------------")
Log("frmmMain_10%y:" & 10%y)
End Sub
B4X:
log is
Application_Start
----------------- frmTest -----------------
frmTest1_10%y:56.8
Application_Active
----------------- frmMain -----------------
frmmMain_10%y:54.8