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
12/08/2005 04:54:21
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
11/08/2005 23:44:31
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:
01040501
Views:
21
I don't think you should try to bound yourself to creating either vcx or prg based classes. A mixture works wonderfully well for me.
A vcx can be converted to prg but not all of them w/o any loss. Also prg could be converted to vcx (prgtovcx from Tom Rettig - rest in peace) but not all of them. Prg has advantages like being able to create those including nonvisual classes. And if you get hands on to prg based classes then you can also write and use classes at run time which I like as a great feature since VFP6 sp3. Visual classes have advantage of visuality < g >.
In short I suggest mixture:)
What I do is to create custom and nonvisual classes in prgs while I generally choose vcx for others.
Cetin

>Cetin,
>
>First off, THANKS TO EVERYONE who has replied! =)
>
>The reason for this thread is that our team is trying to find "common ground" - we intend to come up with our own set of common base classes, and that we are evaluating what's the best way.
>
>Would it be better to have one common method of doing classes (VCX OR PRG)?
>
>Or would a mixed (VCX AND PRG) way of doing classes not be any issue? Or would it create havoc/confusion? (Like having to switch between a text editor and the visual class designer?)
>
>A VCX class can be converted to a PRG class - is it also so vice versa?
>
>
>Sincerely
>Dennis
>
>
>
>>>Hi All,
>>>
>>>I and a friend are having a discussion on how to best create and maintain classes. He suggested that we programmatically code our classes. I, however, am very comfortable designing/coding classes visually - that is, using the Visual Class Designer.
>>>
>>>Although one can very well convert a VCX based class (or a Form even) to a PRG class via Class Browser/View Code, the issue of performance and best practices comes to mind.
>>>
>>>Which executes faster? Is coding classes programatically more popular? Or better practice?
>>>
>>>Many thanks to anyone who shares his/her insights!
>>>
>>>Dennis
>>
>>Dennis,
>>I think your words answer it:
>>"I, however, am very comfortable designing/coding classes visually"
>>IMHO take whichever you're comfortable with.
>>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
Reply
Map
View

Click here to load this message in the networking platform