||Re: allowing user to change or add an alias
||Fri, 16 Jun 2017 20:32:45 -0400
OK I just tried it in the command also...
set procedure to :dUFLP:BDEAlias.cc
oBDE = new BDEAlias()
oBDE.CreateAlias( \"TestAlias\", \"C:\\Temp\" )
It forces a crash on the createalias line. Wonder if I need to install dbase again???
Ken Mayer Wrote:
> On 6/16/2017 10:34 AM, Mervyn Bick wrote:
> > On 2017-06-16 3:41 PM, Ken Mayer wrote:
> >> First, BDEAliasEX.cc works with BDE Aliases that are stored in the
> >> IDAPI.CFG file.
> >> To change the path you have to *delete* the existing alias, and
> >> recreate it, both of which can be done with BDEAliasEX.cc ...
> >> However, BDEAliasEX.cc is an extension of BDEAlias.cc (hence the \"EX\"
> >> part of the name -- \"Extra\" ...).
> > The only thing extra in BDEAliasEx.cc is that it handles cases where
> > MSAccess tables are used. If you don\'t use MSAccess table youdon\'t need
> > BDEAliasEx.cc.
> >> You can do everything just using BDEAlias.cc -- read the comments in
> >> the header:
> >> set procedure to :dUFLP:BDEAlias.cc
> >> oBDE = new BDEAlias()
> >> OBDE.DeleteAlias( \"MyAliasName\" )
> >> oBDE.CreateAlias( \"MyAliasName\", \"PathToDatabase\" )
> >> // where \"PathToDatabase\" would be the value from
> >> // the entryfield you have on your form ...
> > I\'ve been playing with this using dBASE 11.2.1 and Windows 10 Pro, 64
> > bit version 1703
> > ODBE.deleteAlias() deletes he alias without a problem.
> > OBDE.CreateAlias() hangs dBASE. :-(
> Hmm. That\'s pretty weird. I don\'t use it much so haven\'t seen that. I
> just did this in the Command Window with no hang ...:
> set procedure to :dUFLP:BDEAlias.cc
> oBDE = new BDEAlias()
> oBDE.CreateAlias( \"TestAlias\", \"C:\\Temp\" )
> *Ken Mayer*
> Ken\'s dBASE Page: http://www.goldenstag.net/dbase
> The dUFLP: http://www.goldenstag.net/dbase/index.htm#duflp
> dBASE Books: http://www.goldenstag.net/dbase/Books/dBASEBooks.htm