Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy file syntax
Message
De
02/06/2008 11:11:00
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
02/06/2008 11:00:44
Ransome So
Ransome's Workshop
Hong Kong, Hong Kong
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 2000 SP4
Divers
Thread ID:
01320997
Message ID:
01321004
Vues:
15
>Dear all,
>
>In order to copy a file to the mass storage media, a claue copy file to perform the action :
>
>a="filename.ext"
>b="g:\filename.ext"
>
>copy file a to b
>
>The system report to me that no file named a.
>
>What wrong to me ??
>
>
>
>Regards,
>
>Ransome

Without the parentheses (as shown in the other replies you got), VFP will search for files that have that exact name: "a" and "b". Parentheses force VFP to evaluate the variable.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform