Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does a PRG class execute faster than a VCX based class?
Message
From
16/08/2005 10:44:09
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
16/08/2005 10:22:10
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01040117
Message ID:
01041340
Views:
35
>>Yes a namespace might not be same as a vcx but in .Net everything is an object and thus a namespace could easily be seen as a sort of classlib. Actually I don't bother myself with its definition much (and not sure I could describe it ever).
>>Yes a class instantition and calling its functions would take more than calling a weekend function directly. OTOH weekstart, weekend and such functions are not good samples for class.
>
>Why not?

Because I can't think of its properties that'd differ much. However think if that was a Calendar. Gregorian, Hijri etc calendars have different month names, lengths etc. If I would create something that would show a calendar I'd do that with a class and not a prg (I mean functions not prg based classes). ie:

*class calendar
MonthNames[...]
DayNames[...]
FirstDayOfWeek
ShowCalendar()

*class HijriCalenDar
subclassed from calendar
MonthNames[...]
DayNames[...]
FirstDayOfWeek=...

*class GregorianCalenDar
subclassed from calendar
MonthNames[...]
DayNames[...]
FirstDayOfWeek=...

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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform