>Hi All,
>
>Is there a way to draw a n x n grid using shape and line object? Is there any previous articles and discussion on this?
Just draw a number of vertical lines, incrementing the .Left property by the desired amount. Similar for the horizontal lines. I don't think this would merit an article.
Here is a quick test (for the vertical lines):
local lnOffset
lnOffset = 10
lnSpacing = 30
lnHeight = 100
for i = 1 to 5
ThisForm.AddObject("LineVertical" + trans(i), "Line")
o = eval("ThisForm.LineVertical" + trans(i))
o.Left = lnOffset + (i - 1) * lnSpacing
o.Top = 50
o.Height = 100
o.Width = 0
o.Visible = .T.
next
I didn't take the trouble to calculate the correct size.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)