Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
String is too long to fit error with EditBox in a grid
Message
 
 
To
02/02/2007 09:15:07
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01191649
Message ID:
01191760
Views:
8
>>>>Hi everybody,
>>>>
>>>>When I try to scroll an editbox, which is in the Grid, I get "String is too long to fit" error message. Is there any way to fix the problem?
>>>>
>>>>Thanks a lot in advance.
>>>
>>>Is column.controlsource set directly to memo field (no any expressions)?
>>
>>No, I take it back. It is set to
>>
>>alltrim(crsSearchResults.mGenericResolution) + iif(not empty(crsSearchResults.mResolution),iif(not empty(crsSearchResults.mGenericResolution), CHR(13) + chr(10) ,"") + "Comments: " + crsSearchResults.mResolution, "")
>>
>>Should I better create this as an extra field?
>
>So we have the answer. If you use expression then it should not be longer than 254 chars, or you get the error. Use separate memo field.

Thanks, Edward. One more stupid thing from my part.
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