Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String is too long - revisited
Message
 
 
To
29/12/2005 15:26:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01081786
Message ID:
01081821
Views:
13
>We don't go to vfp9 for a while, so can't use that, I thought about though.
>
>I need the action_not memo field to show up in the resulting cursor or table as a memo, in this case. If I run the select without the distinct keyword and now function around the field, no problem.
>but if I put the distinct and function around the field, I get the error, sting too long.
>
>the function can be either my UDF fixmemo, or the alltrim function.
>
The answer is simple then - don't use DISTINCT and don't use a function <g>

You may need to break it into two selects if you need distinct. Or you have to use some complex syntax to get around the problem. So, consider if two selects is an option.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform