Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to store numbers in a prg file?
Message
De
12/09/2002 11:41:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/09/2002 11:36:21
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00699107
Message ID:
00699797
Vues:
22
>Thanks Hilmar:)

Macro expansion is a powerful feature - but use it sparingly, mainly when there is no other alternative.
MyFileName = "AnyTable.dbf"
use &MyFileName
is slower than
MyFileName = "AnyTable.dbf"
use (MyFileName)
I often use macro expansion for complex SELECT - SQL statements, since this allows me to quite a few lines of commands.
OldTalk = set("talk")
SET TALK ON
...
set talk &OldTalk
... can also save you several lines of commands, but might execute slower. The alternative, in this case, is:
OldTalk = set("talk")
SET TALK ON
...
if OldTalk = "ON"
  set talk on
else
  set talk off
endif
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform