Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo fields in Grid
Message
From
17/01/2005 10:22:38
 
 
To
17/01/2005 07:29:52
Irv Adams
MSC Managed Care, Inc.
Florida, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00977699
Message ID:
00977744
Views:
31
When I instantiate a Grid and set the recordsource to a FoxPro table, my Memo field just shows the word 'Memo' in it. How can I get it to show the contents of the memo instead?

If you have a copy of 1001 Things You Wanted to Know About Visual FoxPro, there is an expanding edit box in chapter 4 that also works in a grid column. It may be just what you need:

The expanding edit box (Example: CH04.VCX::edtBase)

One of the shortcomings of the Visual FoxPro base class edit box is that it may be too small to allow the user to see all the text in the memo field being displayed. We can solve this problem easily enough by adding a few properties to our base class edit box and a couple of methods to shrink and expand it.

At first glance one may be tempted to automatically expand the edit box when it gets focus and shrink it again when it loses focus. However, on reflection you will probably agree this would not make a good interface design and would, at the very least, be somewhat disconcerting for the end user. Therefore we have opted to allow the user to expand and shrink the edit box by creating a shortcut menu called from the edit box RightClick method. This menu also gives the user the ability to change the font of the text displayed in the edit box. (Your end users will appreciate the ability to ease the strain on their eyes by enlarging the font, especially when the memo fields to be edited are lengthy.)
Previous
Reply
Map
View

Click here to load this message in the networking platform