Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Class or not to class
Message
From
26/04/2018 09:49:18
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
09/04/2018 17:07:04
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01659269
Message ID:
01659592
Views:
81
Likes (1)
>Hi
>This isn't a problem. Rather, it's just a discussion of something I'm curious about VFP.
>
>As c# developers know, we can't write a method/procedure/function in c# outside of a class.
>But in VFP you can.
>
>So, I have a co-worker who saw my VFP code that wasn't rapped in a class. He asked why?
>I'm new to VFP, so I just said "because you can in VFP".
>;-)

Speed is a big factor too. As an example, if you have a formula directly in a SQL command it takes 1.3 seconds. If you take that formula and make it into a separate .prg, it takes 5 seconds and if you put that formula as a method in a class it takes almost 6 seconds.
Previous
Reply
Map
View

Click here to load this message in the networking platform