Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Memo field odditity in the dynamically created grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Divers
Thread ID:
00987955
Message ID:
00988022
Vues:
40
That will happen if you use a textbox control in a grid for a controlsource that is a memo field. You need to use an editbox instead, and make sure you set the column's Sparse property to .F.

>Hi everybody,
>
>I was showing my old applications to my colleague and he noticed that for memo fields the word Memo or memo is displayed, but we can not click on it - nothing happens.
>
>The grid is build dynamically in the Page activate with the custom form's method BldGrid which has the following code:
>
>
>with loGrid
>*--- Walk through array adding a column to the passed grid for each item in array list.
>	lfor = alen(laColumns,1)
>     .ColumnCount = m.lFor
>*      Add column to grid.
>*!*			.addcolumn(m.i)   && Insert column
>*!*			.columncount = m.i	&& Increment columncount	
>	for i=1 to m.lfor
>*--- Parse out alias and field.
>*		lcField = substr(laColumns[m.i,1],at(".",laColumns[m.i,1])+1)
>		.columns(m.i).controlsource = laColumns[m.i,1]	&& Assign controlsource
>		
>		.columns(m.i).header1.caption = laColumns[m.i,2]
>endfor
>
>Do you see what could be wrong here? Setting RecordSource to "" and back to the table didn't cure the problem.
>
>Thanks a lot in advance.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform