Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Displaying calculated field in a form
Message
De
12/08/2005 19:05:35
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/08/2005 13:50:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01040587
Message ID:
01040631
Vues:
9
Note that in Visual Basic and .NET - and perhaps a few other languages, too - you can refer to an object in a form by its name (perhaps you are confusing this):
// In C#.NET
CalcWeight.Text = ...
In Visual FoxPro, you have to indicate a containership hierarchy, which must start with This, or ThisForm (or an object reference to any object), for example:
* In Visual FoxPro
This.Value = ...
* or:
ThisForm.CalcWeight.Value = ...
>Hi all,
>
>I have a form that is to return a calculated weight. The way I have it set up is obviously wrong, as it's returning the following error message:
>
>"CALCWEIGHT is not an object"
>
>Here's my setup:
>
>In the Refresh method for the Frame that Calcweight is on:
>
>"calcweight=use_size*use_size*blunt*.222"
>
>The field itself has the ControlName of "calcweight" and the Name "calcweight."
>
>In the InteractiveChangeEvent for the fields that affect the calculated value (use_size and blunt), I've got:
>
>"thisform.refresh"
>
>Anytime I change use_size or blunt, I get the error message above.
>
>What am I doing wrong?
>
>Thanks very much!
>
>John
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