O.P. Doing math in a VB dll
I just started tinkering with Plus! plugins today and I'm writing a ping function, my side pings the other, the other responds then I want to report the MS it took to respond, but when I try to do math that part just doesn't respond then but if I take the math out it works. Here is what the section looks like.
If sContactName <> MyUserName Then
PingDelayEnd = GetTickCount
CurrentPing = False
PingTime = (PingDelayEnd - PingDelayStart)
sTextToSend = "Ping Time: 9[" & PingTime & "ms]"
sText = ""
ReceiveNotify = True
Exit Function
Else
Exit Function
End If
|