Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ALLTRIM syntax not support with SQL Server
Message
From
10/04/2003 10:43:25
 
 
To
10/04/2003 10:35:25
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00775890
Message ID:
00776064
Views:
22
>I think I understand what you mean now. If result datatype was a memo then trailer wouldn't occur ( or if you specify size with convert(char(4),year(adddate)), str(year(adddate),4) )
>Specifying the size would work for you here since you know result would always be 4 (at least for our lifespan)
>Otherwise you could prevent trailing forcing the datatype to memo.
>
>
>cursorsetprop('UseMemoSize',1,0)
>SQLExec(lnHandle,'SELECT LTRIM(STR(YEAR(AddDate))) as cYear FROM News')
>? cYear+'A'
>
Running with this property generates the result to be dumped into a memo field. Isn't there a way to have it trim in a character field?
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