or you could also make your myMin Sub passing a list of all the NTIs as a parameter
B4X:
Sub myMin( longValuesList as List)as long
Dim minValue as Long = longValueList.Get(0) 'feed it with an existing value in the list
for each val as Long in longValueList
minValue=min(val,minValue)
Next
return minValue
End Sub
refers to 8:01 A.M.
I get 'Invalid number of parentheses' errors no matter what I try.
Am just wanting to give NextTimeInstance 6 seperate event times.
You only can set the NEXT occurence.
If you have X times (maybe 6, 8). Calculate the time of the NEXT COMING event and set startserviceat to this time.
If your service running the next time and want the next event. Recalulate it again and again set the startservicdat to the next time it should raise.
You only can set the NEXT occurence.
If you have X times (maybe 6, 8). Calculate the time of the NEXT COMING event and set startserviceat to this time.
If your service running the next time and want the next event. Recalulate it again and again set the startservicdat to the next time it should raise.
I hope I know what is being said, I will make a list of 8 times for my event and increment the time with each Click. (if that is what is meant by 'calculate).
thanks for the pointers.
Try to understand what the sub from @JordiCP really does. Create a list with 8 different times in the future. call the method and check which of them are giving back. Why it is exct this value?