New to this... Can't seem to nix it.
Confused as per usual...
Thanks
B4X:
Sub chkmorei
For i = 0 To AllInspects.Size
ChkMoreInspects(i)
' I suspect I need a Wait For here - but what? Any wait for here will return to the calling sub...
Next
End Sub
Sub ChkMoreInspects(i As Int)
Dim inum As Int
inum = i
Log(" ________________ ChkMoreInspects - "&i)
If AllInspects.ContainsKey(inum) Then
If inum = 0 Then
Log(" Doing Truck: "&DefCM.DefTrkNum)
CallSubDelayed( Me, "BuildTruckInpection")
Else
SetCurrTrlInsp(inum)
Log(" Doing Trailer: "&DefCM.InspTrl)
CallSubDelayed( Me, "BuildTrailerInpection")
End If
Else
If Inspection.IsPreOnly Then
PackDefects(1) ' 1 = pre
End If
Inspection.IsPreOnly = False
Inspection.IsPostOnly = False
' Exit
End If
Wait For CallSubDelayed(Inspection,"Saveit_Complete") ' The sub is not pausing here "waiting for Saveit completed to be raised")....
End Sub
Confused as per usual...
Thanks