
Visual Foxpro or Visual Basic
Quote:
> I'll never understand why VB-Pros talks about VFP like if it was the
"little
> brother" of VB!. There are some facts that many VB developers seems to
> unknow:
> 1. VFP is a desktop RDBMS itself with an extense and rich OOP programming
> language; VB is easy and powerfull develop environment for external RDBMS.
Almost correct. In VB 6.0 there is good enough database development tools.
Quote:
> 2. All of the most important ways to access and manipulate data available
> for VB (ADO, RDO, ODBC) can also be used within VFP. This means that the
> same code you write in VB to run a query on a remote table will work also
in
> VFP.
> 3. VFP has a full native SQL language implementation: SELECT-SQL, DML,
DDL;
> VB has not.
... and barely needs. It (VB) just exploits different approach.
Quote:
> 4. VFP OOP implementation is far better than VBs. In fact, in VFP you can
> subclass any native visual and non-visual control. The only way to do this
> in VB is using ActiveX.
In VB you can use custom controls (written in VB). Moreover, these controls
can
have custom events. In VFP subclassed controls cannot extend the event list
of
base control. This is one of very unpleasant feature of VFP.
Quote:
> 5. Almost any ActiveX control that can be used in VB can be also used in
VFP
"Almost" is a good word here. Winsock.ocx definitely does NOT work in VFP.
Quote:
> 6. VFP apps is as fast as VB apps, and VFP string handle is faster than
VBs.
But VB RAD (Intellisense, etc.) makes code writing much faster in VB.
Quote:
> 7. VFP has an incredible collection of functions to process dates,
strings,
> numbers, objects, arrays; most of then aren't available in VB.
That's correct.
Quote:
> 8. Report managment in VFP is far better than in VB and you do not need
any
> external software.
Again _was_ true up to VB 6.0. Currently it is not.
Quote:
> 9. VFP is integrated with Internet as well as VB is. In fact, there are
> native controls to jum to URLS, send an receive mails, etc. Plus, you can
> instantiate an MS Explorer window in for your form.
But, for example, you can use VB message box while you application
works as [OLE] Autometion server and VFP can supply only "under the hood"
operations in this mode.
Quote:
> 10. And the most important point, something that VB programmers can only
> dream about: VFP supports macro-substitution, wich means that you are able
> to run dynamicaly-generated code in runtime. In fact, you can run
commands,
> create forms, class libraries and reports on-the-fly!
Well, actually, this is not needed very often (to my experience).
And you forget the following:
11. VFP is less OLE-oriented and in desktop mode requires simple copying
of the application files and several run-time dlls to work. VB application
requires
installation.
Yuriy Shalak
Quote:
> Victor Espina
> > If you're making the switch anyway (and you should -building a serious
app
> > using Access forms and modules should be reserved for our Creator) why
> > move to another limiting environment. VB is not a DB engine, but has
> great
> > hooks for almost any RDBMS you like (including Foxpro). In some cases
> > I maintain a single piece of code for different desktop apps and web
apps.
> > Migrating to different RBDMSs is usually very simple.
> > mp
> > > VFoxpro or VBasic which one is better to develope database
application.
> At
> > > the moment I using the MS-Access for the creating db app.
> > > Regards,
> > > BP