Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get rid of '0' in character string...
Message
 
 
To
10/07/2000 15:31:31
Jonathan Cochran
Alion Science and Technology
Maryland, United States
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00390434
Message ID:
00390449
Views:
9
>There may be a better way, but of the top of my head:
>
>ALLTRIM(STR(VAL( LEFT( oJC.IssMonth, 2 ) )))

Hi Jonathan,

With VFP6.0 I make a habit to use transform() instead of alltrim(str())


>>Hi everybody,
>>
>>I have this string in my report:
>>SUBSTR(oJC.IssMonth,3) +' YEAR-TO-DATE RECAP THRU ISSUE ' +LEFT(oJC.IssMonth,2)
>>
>>left(oJC.IssMonth,2) would be '07', '08', etc. I would like to print just '7' or '8' in my Report. What would be the simplest way to achive this?
>>
>>Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform