Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Memo field in a grid doesn't shows its content
Message
From
06/11/2012 13:31:41
 
 
To
06/11/2012 13:26:43
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01556508
Message ID:
01556512
Views:
84
This message has been marked as the solution to the initial question of the thread.
>>The behavior you want is in Browse, but not in a grid. You can hover the mouse over the memo field in the grid, and you will see its contents.
>
>Tha'ts ok, but I need to modify its content.
>
>Please, consider the following code:
>
>        Procedure grdBrowseTable.Init
>*                 -------------- ----
>                  This.RecordSource = cTableAlias
>
>                  For I = 1 To This.ColumnCount
>                       BindEvent (This.Columns(I).Text1, "DblClick"  , ThisForm, "grdBrowseTable_DblClick"  )
>                  EndFor
>        EndProc
>
>        Procedure grdBrowseTable_DblClick
>*                 -------------- --------
>                  Local cVar
>
>                  cVar = Thisform.grdBrowseTable.Columns(Thisform.grdBrowseTable.ActiveColumn).Text1.Value
>
>                  MessageBox (VarType (cVar))
>        EndProc
>
>When double clicking over a memo field it returns "C", so I can't know if it is a memo field, Character, Varchar or Varchar (Binary).
>
>If I knew when a field is a memo and its name, I could MODIFY MEMO &FieldName (I think.)
>
>>However, the best solution is to have separate editboxes for the memo fields.
>

You can use Afield() to find out which fields are memo fields.
>But I don't know what fields are memo.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform