This is probably a dull question but I don´t know how to get a value from a class module. The normal way doesn´t work (Modulname.value).
I use the ClsWheel calendar example which has a class "ClsWheel". In this class there is a sub "Sub GetTimeHM" from where I would like to get the value "TimeTicks" to use it in "Main". Hope it is clear.
I use the ClsWheel calendar example which has a class "ClsWheel". In this class there is a sub "Sub GetTimeHM" from where I would like to get the value "TimeTicks" to use it in "Main". Hope it is clear.
B4X:
Private Sub GetTimeHM(Time1 As String) As String
Dim TimeFormat, Time2 As String
Dim TimeTicks As Long
TimeFormat = DateTime.TimeFormat
DateTime.TimeFormat = "HH:mm"
TimeTicks = DateTime.TimeParse(Time1) '<<<<<<
DateTime.TimeFormat = TimeFormat
Time2 = DateTime.TIME(TimeTicks)
Return Time2
End Sub