I'm trying to learn some Delphi
I know how to code in VisualBasic6
I just want to write down some routines that I might use again and again.
In VB6 I would write
sub drawGrid(pict as picturebox, x as integer, y as integer)
code to draw the grid overhere (just y+1 horizontal and x+1 vertical lines)
I managed to draw a grid within a unit that belongs to the form itself, but now i want to write down the same code in a general way
So I want to pass the object were I draw on as an argument.
next I want to write doen
pict.canvas. etcetera to draw the grid
but it just didn't work.
Hope this question is clear and hope someopne is able to explain what I should do. Lots of thanks to those helpfull