too many aliases 
Author Message
 too many aliases
i have several applications developed for paradox, the alias list at any one
time is vary long

is there a way to have several alias files and call the relevant one when
loading paradox

many thanks
Paula



Sat, 07 Sep 2002 03:00:00 GMT
 too many aliases

Quote:

> is there a way to have several alias files and call the relevant one
when
> loading paradox

According to Paradox help file, you can the command line option
"-o Filename       Alternate BDE configuration file."
when loading Paradox
I haven't tried this, but you could set up several icons for Paradox
each with a different .cfg file.
Fintan

Sent via Deja.com http://www.deja.com/
Before you buy.



Sat, 07 Sep 2002 03:00:00 GMT
 too many aliases
To avoid alias glutter you can use Project Aliases. Project alias(es) are saved
to a cfg file in the current directory and only visible from there

HTH

Quote:

> i have several applications developed for paradox, the alias list at any one
> time is vary long

> is there a way to have several alias files and call the relevant one when
> loading paradox

> many thanks
> Paula

--
Michael


Sat, 07 Sep 2002 03:00:00 GMT
 too many aliases
Hello,

Another way is to store aliases in a table set in the root directory of
every app.
In a starting script, just SCAN the table to set the aliases, open the
main form, wait for clothing the main form, and scan another time
the table to clean the aliases.

Take a look over the 2 scripts I wrote ADDALIAS REMOVEALIAS
---------- ADDALIAS
method run(var eventInfo Event)

var
        TCAlias         TCursor
endvar

if not TCalias.open(WorkingDir()+"\\TABALIAS")
then                            ; on tente d'ouvrir le pointeur sur la table
        errorShow()             ; des alias. En cas d'chec on en informe
        exit()                  ; l'utilisateur et on sort de PARADOX
        return
endif

SCAN TCalias :                                          ; balayage de la table et ajout des alias
        SWITCH
                CASE TCAlias.Adressage = "R" :                ; adressage relatif par rapport au
rpertoire de travail
                        if not
AddAlias(TCalias.NomAlias,"STANDARD",WorkingDir()+"\\"+TCalias.CheminAlias)
                        then                                                            ; en cas d'erreur
                                MsgStop("ATTENTION","Alias "+TCAlias.NomAlias+" incorrect.")                      ; on
en informe l'utilisateur
                                errorClear()
                        endif
                CASE TCAlias.Adressage = "A" :                ; adressage absolu : unit+chemin
                        if not AddAlias(TCalias.NomAlias,"STANDARD",TCalias.CheminAlias)
                        then                                                            ; en cas d'erreur
                                MsgStop("ATTENTION","Alias "+TCAlias.NomAlias+" incorrect.")                      ; on
en informe l'utilisateur
                                errorClear()
                        endif
        ENDSWITCH
endScan

TCalias.close()                                 ; fermeture du pointeur

FormReturn(true)

endmethod

------------- REMOVALIAS

method run(var eventInfo Event)

var
        TCAlias         TCursor                 ; Pointeur sur table des alias
endvar

if not TCalias.open(WorkingDir()+"\\TABALIAS")
then                                                                    ; on tente d'ouvrir le pointeur sur la table
        errorShow()                                             ; des alias. En cas d'chec on en informe
        exit()                                                  ; l'utilisateur et on sort de PARADOX
        return
endif

SCAN TCalias :                                          ; balayage de la table et retrait des alias
        RemoveAlias(TCalias.NomAlias)
endScan

TCalias.close()                                 ; fermeture du pointeur

MP.removePassWord()

endmethod

Frederic BROUARD - AMARIS SA Ile de France
Paradox - Delphi - SGBDR / RDBMS - SQL
http://perso.club-internet.fr/brouardf

More about PARADOX and SQL ?
http://perso.club-internet.fr/brouardf/Paradox_SQL.html
BelairPBK a crit :

Quote:

> i have several applications developed for paradox, the alias list at any one
> time is vary long

> is there a way to have several alias files and call the relevant one when
> loading paradox

> many thanks
> Paula



Tue, 10 Sep 2002 03:00:00 GMT
 
 [ 4 post ] 

 Relevant Pages 

1. Alias - no more Alias users in 7

2. composing alias in 7.0 or logon alias

3. Automatically added column alias

4. alias to sa

5. Incorrect column name with reuse of computed field alias

6. Database Alias in Sql Server 7.0

7. Should I alias myself to dbo????

8. Table aliases V6.5 vs V7.0

9. How to synchronize logins incl. aliases


 
Powered by phpBB® Forum Software