It's a casting issue. Do you have test1 and test2 dimmed as a String before assigning the values?
OK, that was it. Many thanks.
Where can I look which signs are not allowed in strings
for operations/compare?
Sorry for my bad english. If I will get time I will visit my cousin in Califonia for learning better english...
Now I try this and I got the same error:
This are values which I read from a textfile into a list
19:00:00
19:05:00
19:10:00
... an so on
test1, test2 are dimmed as string
test1 = DateTime.Time(DateTime.now)
test2 = list1.Get(i)
If test1.Replace(":", "") > test2.Replace(":", "") Then ... I got same Error
java.lang.NumberFormatException: Invalid double: "19:00:00"
dim comp1, comp2 as double
comp1=test1.replace(":","")
comp2=test2.replace(":","")
if comp1>comp2 then
Dim t1 as string
Dim t2 as string
t1 = "19:00:00"
t2 = "19:00:01"
if t1 = t2 then
'do if equal
else
' do if not equal
end if
Dim t1 as string
Dim t2 as string
t1 = "19:00:00"
t2 = "19:00:01"
if t1 > t2 then
'do if Greater
else
' do if not Greater
end if