Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Trying to create a class
Message
From
27/11/2001 15:39:04
 
 
To
27/11/2001 15:32:20
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00586547
Message ID:
00586606
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
Is the timetrans class code inside of the timesheet.prg file?

If so, what you have should work.

>Steve,
> The book supplied the following .pgm to test the class, that is where I am getting the error. "Class Definition "timetrans" is not found".
>
>
SET CLASSLIB TO timesheet
>
>ox = CreateObject("TimeTrans")
>
>ox.Add()
>ox.cEmployee = "MB"
>ox.dDate = {^1998-08-01}
>ox.cClient = "SAMS"
>ox.cService = "PROGRAM"
>ox.cDescription = "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.cDescription = "Write on the book"
>ox.nHours = 8
>ox.Save()
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform