Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing leading zero's
Message
From
22/04/2004 07:02:07
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00897143
Message ID:
00897145
Views:
16
This message has been marked as the solution to the initial question of the thread.
>How do I remove leading zero's in a report??
>
>I have a field on my report named Task ID which looks like the following:
>
>000911
>000912
>000913
>
>I want it to report like:
>
>911
>912
>913
>
>any help would be much appreciated

ltrim(str(val(TaskID)))
or:
trans(val(TaskID))
or:
Directly when creating your report cursor :
select val(tAskID) as TaskID ..
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform