Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Questions about VFP6
Message
From
10/10/1998 09:40:12
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00144902
Message ID:
00145649
Views:
37
>Right. Sometimes it's just easier if you can look at a program file. It wouldn't be very difficult to pull all of the procedures from a VCX or SCX file and then edit them and push them back into the appropriate file, but it isn't very automated. You would have to make sure that you always remembered to put it back when you were done, which could lead to problems. I guess it is a fundamental design difference between something like Delphi and VFP. Delphi just stores everything in a text file and parses it, while VFP stores it in a table.

Writing an utility which would generate code from .scx and into a .prg and vice versa is not that impossible - I think there are utilities like PrgToVcx (check the files section, I think there's something of the kind there), but there's another obstacle.

In order to have .prg code completely emulate an equivalent .scx, it would have to have local subclasses for any objects within containers, because you can't just have a Define Class with methods for objects which are not immediate children of a form (or a formset). It would take lots of local subclassing for each object which is deeper than one level down the containership hierarchy, and I have some serious doubts on the overall readability of such code, and of the possibility that it may be directly transportable back to .scx after all of subclassing.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform