Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unknown Member
Message
De
15/10/1998 06:02:33
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00147055
Message ID:
00147056
Vues:
30
>On a form I've got a method called CalcTotal. This method calculates the total cost(TotalCost) and is as follows :
> This.TotalCost.Value=This.IntCost.Value+This.ExtCost.Value+ ;
> This.Labour.value
> This.TotalCost.Refresh()
>In the LostFocus of each of the 3 textboxes(IntCost,ExtCost & Labour) I call the method :
> THISFORM.CalcTotal()
>I enter a value say 100(It is currency textboxes) and tab out of the textbox. Then I get the following error message :
> Unknown member IntCost
>Eventually I've traced the problem to the CalcTotal method by changing the method to :
> This.TotalCost.Value=This.Labour.value
>The error message then changed to
> Unknown member Labour
>
>Can anyone shed some light on the error message.
>
>TIA.
>
>Petrus.
Petrus,
Are you sure labour, intcost and extcost are members of form and not a container on form ?
In form designer, calctotal code window, right click and select object list to get intcost, extcos and labour. It should write the correct hierarchy.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform