Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this VFP code be faster? (File Expansion)
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01068953
Message ID:
01071013
Vues:
32
This message has been marked as a message which has helped to the initial question of the thread.
>Thanks for the tips and ideas George. I'll do some testing today with your ideas.
>
Tracy,

Here's one I forgot to mention. The first few lines read like this
>IF TYPE('lcAl3File')= "L" .OR. EMPTY(lcAl3File)
   * no path sent so look for it in temp folder
   RETURN .F.
ENDIF
Not knowing the what the caller is here leaves me to guess. However, that's never stopped me in the past.:-)

The suggestion is twofold. First, if the call comes from a user entry, check this there (the Valid event) rather than here. Second, if the caller does not require user entry, use ASSERT to make sure that valid values are passed. Since ASSERT isn't compiled into the application, no additional overhead is incurred there. Further, it will help with testing to assure that no method can call it with an invalid value.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform