Hi,
Am new to AGK2 (Tier1) but am an experienced C#/VB.NET coder. I am confused as to why I am getting the above error. Code is below... any ideas because i am at a loss
spacing as integer = 0
x as integer = 0
y as integer = 0
// First the horizontal lines
if (numberHorizontalLines > 0)
spacing = round(GFXHeight / numberHorizontalLines)
for y = 0 to GFXHeight step spacing
DrawLine(0,y,GFXWidth,y, linecolour)
next y
endif
The error is showing on the line
spacing = round(GFXHeight / numberHorizontalLines)
For reference the GFXHeight has been defined as a Constant Integer at the top of the file
and numberOfHorizontalLines has been defined as an integer (as the parameter of the function this code is in)
I would be grateful for any pointers as this has me baffled
Many Thanks