Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: STR() not support correctly null variables
Message
From
16/05/2003 05:08:16
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
BUG: STR() not support correctly null variables
Miscellaneous
Thread ID:
00789137
Message ID:
00789137
Views:
51
Hi

x=NULL
? STR(null)

OK : STR return NULL
BUG : NULL type is not "C"; LTRIM(),RTRIM()... return NULL "C" type correclty

? STR(x)

BUG: STR return error type

For VFP Team: solution

your internal code is:
if (parameterType#'C')
Error;
if (parameterValue=NULL)
return parameterValue;

correct is ( LTRIM .. RTRIM uses this schema ):
if (parameterValue=NULL)
return charsNullvalue;
if (parameterType#'C')
Error;


Fabio
Next
Reply
Map
View

Click here to load this message in the networking platform