Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALLTRIM syntax not support with SQL Server
Message
From
10/04/2003 09:57:35
 
 
To
10/04/2003 09:41:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00775890
Message ID:
00776021
Views:
19
>>>LTRIM(STR(YEAR(AddDate)))
>>>works for me in VFP and SQL. You don't need rtrim().
>>
>>Ok, but there is still the issue of extra spaces. As I need to use that field for comparism down under, it would have been nice to trim it entirely.
>
>I meant it trims entirely for me :) With numeric values converted with str() I don't see any trailing spaces.

I tried it again and the following:
SQLExec(lnHandle,'SELECT LTRIM(STR(YEAR(AddDate))) FROM News')
generates trailing spaces.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform