Quote:
Originally Posted by agraham
I'm not sure what your problem is. This works for me
Code:
Sub Globals 'Declare the global variables here. oldY = 0 End Sub
Sub App_Start Form1.Show End Sub
Sub Form1_MouseMove(x, y) oy = oldy oldy = y If y < oy Then Label1.Text = "Going up!" Else If y > oy Label1.Text = "Going down!" Else Label1.Text = "Going nowhere!" End If End Sub
|
Well I missed the oy = oldy
Thanks, it works.
Now another question.
I'm having trouble with args()
The only way a command line seems to work is
Code:
If ArrayLen(args())=2 then Form1.Show Else msgbox("NoForm")
How can the argument be saved, or read?
Code:
For.....
If args(i) = -ShowTheForm then Form1.Show Else msgbox("NoForm")
Next
Index Out Of Range