Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
UDF transmutation
Message
De
10/09/2015 14:29:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
10/09/2015 09:32:31
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01623094
Message ID:
01624482
Vues:
75
Wouldn't
>IF DBUSED("DATABASENAME")
>  IF SET("DATABASE")#""DATABASENAME"
>    SET DATABASE TO DATABASENAME
>  ENDIF
ELSE
 OPEN DATABASE DATABASENAME
>ENDIF
be a bit better?
[gdr]


>I just had occasion to change a small udf that did an unconditional OPEN DATABASE to this...
>
>IF DBUSED("DATABASENAME")
> IF SET("DATABASE")#""DATABASENAME"
> SET DATABASE TO DATABASENAME
> ENDIF
>ENDIF
>
>and guess what - the app starts visibly faster and things seem snappier overall. Maybe most programmers and most clients don't care about snappy, but I do. dbused is over 600 times faster than open database. I'll gladly take that.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform