View Single Post
  #6 (permalink)  
Old 07-06-2009, 07:08 AM
nl1007 nl1007 is offline
Junior Member
 
Join Date: Jul 2009
Location: Derbyshire, UK
Posts: 36
Default

you don't need the Abs() line, and extra 'If' level; just use:

If DeltaDir < 180 Then
DeltaDir = DeltaDir + 360
ElseIf DeltaDir > 180 Then
DeltaDir = DeltaDir - 360
End If
Reply With Quote