Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Ltrim
Message
 
 
To
18/03/2009 10:22:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Ltrim
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01389114
Message ID:
01389119
Views:
90
Try
LTRIM(DisplayVal("A",somast.fcity,somast.fcountry,somast.fstate,somast.fzip),[,])
If you get the same error again than you're not using VFP9.


>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.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform