Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Not a character expression
Message
De
01/06/2010 22:23:55
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01466967
Message ID:
01467001
Vues:
47
>Hi everybody,
>
>Do you know why would I get the error 'Not a character expression' on this line of code
>
> erase file (addbs(oAppObj.cProgDataDir) + 'batchprt.dbf')
>
>the oAppObj.cProgDataDir contains a valid path.
>
>Thanks in advance.
>
>UPDATE. Figured this out. It was the incorrect syntax (should be ERASE (fileName)). The error message was not helpful.

In any case, it makes debugging easier if you put the expression for the filename into a 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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform