Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
If you hardcode user names, you might be a crappy coder
Message
 
To
08/06/2021 09:29:06
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01680936
Message ID:
01681077
Views:
50
>>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...

One thing I noticed about using VFP data -- instead of using local views, use remote views (as odd as it sounds to use remote view to view .dbf data lol). I started doing this long time ago for quite a few reasons -- but one thing I assumed (so high probability I'm wrong lol) was that it could have a speed benefit as since a remote view vs local view, VFP doesn't have to open the .dbf table :) if you use remote views --- seems like might be quicker? who knows.

>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.
ICQ 10556 (ya), 254117
Previous
Reply
Map
View

Click here to load this message in the networking platform