I added the code to change colors (If O.OSStatus = "C" Then...) but it had no effect until I added the
Sleep(0).
All lines remained the default - white.
Not a big deal but it took awhile to figure out what was going on.
More was revealed. See next post.
Sleep(0).
All lines remained the default - white.
Not a big deal but it took awhile to figure out what was going on.
B4X:
Sub Globals
Dim List1 As ListView
.
.
.
Do While Crsr.NextRow
O.OSID = Crsr.GetLong("Os_ID")
O.JobNum = Crsr.GetString("Os_JobNum")
O.Rel = Crsr.GetString("Os_ReleaseNum")
O.Os_SeqNum = Crsr.GetString("Os_SeqNum")
O.Tk_WCName = Crsr.GetString("Os_WCCode")
O.OSStatus = Crsr.GetString("Os_Status")
If O.OSStatus = "C" Then
List1.TwoLinesLayout.Label.TextColor = Colors.Red
Else
List1.TwoLinesLayout.Label.TextColor = Colors.White
End If
Sleep(0)
If Crsr.GetInt("Os_SubContract") = 0 Then
List1.AddTwoLines2(NumberFormat(Crsr.GetString("Os_SeqNum"),0 ,0 ) & " Op: " & Crsr.GetString("Os_WCCode") & IIF(O.OSStatus = Null, "", "-Status: " & O.OSStatus), "Start By: " & Crsr.GetString("Os_StartbyDate") & " Setup: " & NumberFormat(Crsr.GetString("Os_SetupTime"), 0, 2) & " Run: " & NumberFormat(Crsr.GetString("Os_RunTime"), 0, 2), O)
End If
.
.
.
Last edited: