Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help on Macro Substitution '&'
Message
De
12/08/2013 13:36:29
 
 
À
12/08/2013 13:23:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01580299
Message ID:
01580302
Vues:
79
If there is a space in the path or file name, macro substitution will fail.

Try APPEND FROM (cPsFilePath) SDF

>I am using the following code and it works fine
>
>
>SELECT New_Bills
>SCAN  && Scans for New_bills up to EOF()
>*Define Variables
>	cPsfilepath=ALLTRIM(Myfilepath)
>	CREATE CURSOR Billcompress (POS C(254)) && Create Temporary Cursor
>	SELECT Billcompress
>	APPEND FROM '&cPsFilepath' SDF
>
>
>However when I use APPEND FROM cPsFilepath SDF, it generates error as file not found.
>
>My Questions.
>(1) IS it necessary to have Macro substitue. ?
>(2) Where and Why Macro Substutes are used ?
>(3) Does use of Macro substitue decreese the processing speed ?
>
>Kinldy Guide
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform