Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Draw lines
Message
De
28/03/2005 08:27:16
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
28/03/2005 04:42:16
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7
Database:
Visual FoxPro
Divers
Thread ID:
00997659
Message ID:
00999398
Vues:
18
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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform