Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FYI; Problem with PADL; .NULL. in SELECT SQL
Message
From
22/06/2009 08:36:36
 
 
To
22/06/2009 08:19:19
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01407500
Message ID:
01407518
Views:
52
Agnes,

What's wrong with
padr(nvl(field, ''), 11)


>Yes.
>But there are still some apps with VFP 7.0 out here. I guess I will switch to BINTOC instead.
>
>Agnes
>
>>As you found out, it's better to use CAST() function in a query. It was created specifically for compatibility with SQL Server.
>>
>>>I run into this problem in a SELECT with an inner join.
>>>
>>>And, yes PADR(.NULL.,11) returns '.NULL. '
>>>
>>>But the SQL will set it to c(1). Other trimmings of PADR like PADR(...,...',_') will fail to. The browse will look like it holds eleven chars (SPACE in any way), DISPLAY STRU returns c(1)
>>>
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform