24-09-2009, 11:15 PM
Code:
Public Function TwipsToPixels(ByVal twip_val As Long, ByVal XorY As Byte) As Long
If XorY = 0 Then
TwipsToPixels = twip_val / Screen.TwipsPerPixelX
ElseIf XorY = 1 Then
TwipsToPixels = twip_val / Screen.TwipsPerPixelY
End If
End Function
Public Function PixelsToTwips(ByVal pixel_val As Long, ByVal XorY As Byte) As Long
If XorY = 0 Then
PixelsToTwips = pixel_val * Screen.TwipsPerPixelX
ElseIf XorY = 1 Then
PixelsToTwips = pixel_val * Screen.TwipsPerPixelY
End If
End Function
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?