My problem is that I can't set the text of some labels programmatically. Refer to attach project file.
The following code change the Label text values:
But when debugging the code the code is really executed but the text of the 4 mentioned labels remain unchanged.
The CheckPart6Tab functions is called when a certain timer is finished (twice each second):
This timer is created en initialized using the InitialiseTimers function called in the Activity_Create.
Any help/suggestion appreciated?
The following code change the Label text values:
B4X:
Sub CheckPart6Tab() As Boolean
Select Case SpinAantalBruggen.SelectedIndex
Case 0
'Only single bridge
BtnPreviousSetBridges.Visible = False
BtnNextSetBridges.Visible = False
ShowBridge2Items(False)
ShowBridge3Items(False)
ShowBridge4Items(False)
LblBrugAHeader.Text = "Brug A of X"
LblBrugBHeader.Text = ""
LblBrugCHeader.Text = ""
LblBrugDHeader.Text = ""
Case 1
'Double bridge AB or XY
BtnPreviousSetBridges.Visible = False
BtnNextSetBridges.Visible = False
ShowBridge2Items(True)
ShowBridge3Items(False)
ShowBridge4Items(False)
LblBrugAHeader.Text = "Brug A of X"
LblBrugBHeader.Text = "Brug B of Y"
LblBrugCHeader.Text = ""
LblBrugDHeader.Text = ""
Case 2
'Quadruple bridge XA, XB, YA, YB
BtnPreviousSetBridges.Visible = True
BtnNextSetBridges.Visible = True
ShowBridge2Items(True)
ShowBridge3Items(True)
ShowBridge4Items(True)
LblBrugAHeader.Text = "Brug XA"
LblBrugBHeader.Text = "Brug XB"
LblBrugCHeader.Text = "Brug YA"
LblBrugDHeader.Text = "Brug YB"
Case Else
BtnPreviousSetBridges.Visible = False
BtnNextSetBridges.Visible = False
ShowBridge2Items(False)
ShowBridge3Items(False)
ShowBridge4Items(False)
LblBrugAHeader.Text = "Brug A of X"
LblBrugBHeader.Text = ""
LblBrugCHeader.Text = ""
LblBrugDHeader.Text = ""
End Select
End Sub
But when debugging the code the code is really executed but the text of the 4 mentioned labels remain unchanged.
The CheckPart6Tab functions is called when a certain timer is finished (twice each second):
B4X:
Sub CheckPart6RequirementsTimer_Tick
CheckPart6Tab
CheckPart6BridgeARelatedItems
CheckPart6BridgeBRelatedItems
End Sub
This timer is created en initialized using the InitialiseTimers function called in the Activity_Create.
Any help/suggestion appreciated?