In my example, x, y, i are not objects, but properties, defined with the command: "Form | Add Property".
Your second line, for example, should read:
ThisForm.i = ThisForm.i + 0.05
Since you already have a
with ThisForm, you can simplify this to:
.i = .i + 0.05
The command
WITH ThisForm will add "ThisForm" to expressions that start with "."
HTH,
Hilmar.
>hi,
>i creat newform,
>at newproperty i try to insert thisform.x.value=0 ,or just x= 0, i get invalid name.
>i think i must put 3 text at my form as thisform.x.value,thisform.y.value and thisform.i.value. also nothing happend.
>at timer procedure timer i put the code as under
> any help.
>
>with ThisForm
> thisform.i.value = thisform.i.value + 0.05
> thisform.x.value = thisform.i.value*100
> thisform.y.value = sin(thisform.i.value)*100 + 100
> .Line(thisform.x.value, thisform.y.value)
> if thisform.i.value >= 2*pi()
> This.Enabled = .F.
> endif
>endwith
>
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)