Subject Re: allowing user to change or add an alias
From Charlie <tm@tc.com>
Date Sat, 17 Jun 2017 04:51:36 -0400
Newsgroups dbase.getting-started

Hi Mervyn..

Unfortunately I guess mine is doing the opposite  thing.. adding an alias successfully but hanging up on deleting an alias.  I am using windows 8.1 and dbase 10.3.

geez!!!!

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. :-(
>
> Mervyn
>
>