adspace


can everyone explain this code

Private Sub DrawRect(rectSource As RECT, lngColour As Long)


Line (rectSource.Left, rectSource.Top)-(rectSource.Left,
rectSource.Bottom), lngColour
Line (rectSource.Left, rectSource.Top)-
(rectSource.Right, rectSource.Top), lngColour
Line (rectSource.Right, rectSource.Bottom)-
(rectSource.Right, rectSource.Top), lngColour
Line (rectSource.Right, rectSource.Bottom)-
(rectSource.Left, rectSource.Bottom), lngColour

End Sub

Answer Posted / Virendra Kumar Singh

This is a VBScript subroutine named 'DrawRect' that accepts two parameters: rectSource (a RECT structure representing the rectangle dimensions) and lngColour (the color of the line used to draw the rectangle). The subroutine uses four lines to create a square/rectangle by connecting the vertices of the given rectangle. The resulting shape will be drawn in the specified color.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category