Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo Field in a Grid
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00568983
Message ID:
00569254
Views:
30
>I've got a form that we use in our program to get a raw look at the table (ie, as if you just type USE TABLE, and BROW). Well, we are using the basic Grid control, and found a small problem. You can't view Memo fields with it.

After you do your USE, just add a couple more lines to your code:
FOR EACH loColumn IN grid.Columns
   IF type(loColumn.controlsource) = 'M'
      loColumn.RemoveObject("text1")
      loColumn.AddObject("text1", "mymemoclass")
      loColumn.text1.Visible = .T.
      loColumn.Sparse = .F.
   ENDIF
ENDFOR
Where MyMemoClass is a textbox, or an editbox, or even a command button that is the user interface for all memo fields in your grid.
Previous
Reply
Map
View

Click here to load this message in the networking platform