Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo field in a grid doesn't shows its content
Message
De
06/11/2012 13:31:41
 
 
À
06/11/2012 13:26:43
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01556508
Message ID:
01556512
Vues:
85
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform