Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If you hardcode user names, you might be a crappy coder
Message
From
08/06/2021 09:29:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
07/06/2021 18:38:09
John Ryan
Captain-Cooker Appreciation Society
Taumata Whakatangi ..., New Zealand
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680936
Message ID:
01681070
Views:
58
>I did notice a comment from Dragan along one of these threads, that prg-based forms and classes instantiate quicker than scx or vcx. Did I get that right, Dragan? Definitely the case? Last I heard (admittedly many years ago) was that dbfs or views in a visual data environment load visibly quicker than a series of USE but again, that's likely to be eclipsed by better hardware over the decades...

That was in 2003... and the guy ran both versions on the same hardware. I just gave him a hint, based on what I heard elsewhere (here?) then, and I did some testing on my own, but not much. He did, and was satisfied with the speed gains so much that he decided to redo all of his forms this way. I've seen the code, actually I think I got it somewhere on my disk... wait.

Worked on bunch of defines like these...
#define hnTopRow9 198
#define hnTopRow10 222
#define hnTopRow11 246
ditto for columns and widths, so he basically reinvented foxels the other way, and the code for his forms was like
    add object CboImpSource as CboImpSource with  ;
        left          = hnLeftCol11,              ;
        top           = hnLookupRow
    add object lblImpSource as LblOver with caption = "Import Source", ;
        left    = this.CboImpSource.left + hnLblOverNudge, ;
        top     = this.CboImpSource.top - hnLblOverHeight
Which I guess he partly lifted from some vcx2prg utility, perhaps classbrowser, and then just reduced to just this. I remember he said it was worth the effort.

At the time he was alone on that project (apart from me jumping in now and then on some HW interfaces and various odds and ends), so he could just take his time and go for it. Perhaps I would have done that myself, but I was always on a larger team and we never had the time to even try something of the kind.

back to same old

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

Click here to load this message in the networking platform