Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Protected / UnProtected????
Message
From
28/11/2001 09:52:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
28/11/2001 09:50:13
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00586933
Message ID:
00586934
Views:
23
This message has been marked as a message which has helped to the initial question of the thread.
>In my code taken from the class browser, there are procedures and "protected" procedures. I have a small test program that doesn't appear to call any of the protected procedures but they somehow run anyway. WHY???? What am I missing?
>It seems to me that only the add and save procs should run.

For instance, procedure desc_assign will automatically be called when you assign a value to property desc.

Hilmar.

>
>
Procedures:  add
>             save
>Protected Procedures:
>             desc_assign
>             service_assign
>             rate_assign
>             hours_assign
>
>TEST PROGRAM:
>
SET CLASSLIB TO timesheet
>
>ox = CreateObject("TimeTrans")
>
>ox.Add()
>ox.cEmployee = "MB"
>ox.dDate = {^1998-08-01}
>ox.cClient = "SAMS"
>ox.cService = "PROGRAM"
>ox.mdesc = "Work on the book"
>ox.nHours = 8.25
>ox.Save()
>
>ox.Add()
>ox.cEmployee = "MB"
>ox.dDate = {^1998-08-02}
>ox.cClient = "SAMS"
>ox.cService = "USERDOC"
>ox.mdesc = "Write on the book"
>ox.nHours = 8
>ox.Save()
>
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)
Previous
Reply
Map
View

Click here to load this message in the networking platform