I get this error:
compile error
wrong amount of arguments or invalid property assignment:
This is highlighted : .Line (X1, Y1)-(X2,
in the next to last statement below after I make any change in any staement
Below, I changed: b = txt(1)
to b = 45: 'txt(1)
and the error popped up.
The change seems totally unrelated to the line highlighted and remains even after I end the program.
The compile error shows immediately when I hit F5 (run)
if I close the app (Alt F X) and restart there is no compile error even with the changed statement.
This means that after each edit, I must save and close then reopen the project !!!
lAngle = txt(3)
b = 45: 'txt(1)
h = txt(2)
lAngle = lAngle / 180 * 3.14159625 ' Convert to radians
X1 = 0: Y1 = 0
X2 = X1 + Cos(lAngle) * b
Y2 = Y1 + Sin(lAngle) * h
Picture1.Line (X1, Y1)-(X2, Y2)
Picture1.Line (0, 0)-(h - Sin(lAngle * Pi / 180), 0)
compile error
wrong amount of arguments or invalid property assignment:
This is highlighted : .Line (X1, Y1)-(X2,
in the next to last statement below after I make any change in any staement
Below, I changed: b = txt(1)
to b = 45: 'txt(1)
and the error popped up.
The change seems totally unrelated to the line highlighted and remains even after I end the program.
The compile error shows immediately when I hit F5 (run)
if I close the app (Alt F X) and restart there is no compile error even with the changed statement.
This means that after each edit, I must save and close then reopen the project !!!
lAngle = txt(3)
b = 45: 'txt(1)
h = txt(2)
lAngle = lAngle / 180 * 3.14159625 ' Convert to radians
X1 = 0: Y1 = 0
X2 = X1 + Cos(lAngle) * b
Y2 = Y1 + Sin(lAngle) * h
Picture1.Line (X1, Y1)-(X2, Y2)
Picture1.Line (0, 0)-(h - Sin(lAngle * Pi / 180), 0)