Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Unknown Member
Message
From
15/10/1998 06:04:21
 
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00147055
Message ID:
00147057
Views:
28
>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.

Hi Petrus.
Seems like your object referencing isn't quite right. If you develop in VFP 5.0a you can try rightclicking in the method window and choose "Object list". You will then be able to select the object you want to calculate from and get the right reference to it.

best
Danijel
Previous
Reply
Map
View

Click here to load this message in the networking platform