Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Ltrim
Message
De
18/03/2009 10:22:33
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Ltrim
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01389114
Message ID:
01389114
Vues:
145
I have a report that is using a defined function to display city state and zipcode in a particular format. A particular field on the report header looks like this:

DisplayVal("A",somast.fcity,somast.fcountry,somast.fstate,somast.fzip)


I am unable to modify the function because it is part of the project (a vcx) and the boss has not given me the ok to recompile using re-fox. The function displays a leading comma from time to time and I'd like to remove that comma.

so i am limited to making changes on the report.
I have tried LTRIM(DisplayVal("A",somast.fcity,somast.fcountry,somast.fstate,somast.fzip),1,chr(44))

but that returns an error "too many arguments"

When I test the following it works fine: ? ltrim(',Test',1,chr(44)) it returns 'Test' removing the leading comma correctly.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform