Information générale
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Hi,
Than you can put bindcontrols = .f. and put bindcontrols = .t. at form's init after dode()?
>Hi
>
>The problem with "ThisForm" is that some of the containers are not fully initialized when the grid column is being built so it fails.
>
>Simon
>
>
>>>>Ho
>>>>
>>>>I know I have done this before but I have forgotten how to use a Method as the ControlSource for a grid column. I want to have a custom method in the grid that I can use to supply the text to display in the grid column. Since the text cannot simple be created in one line I wanted to set the ControlSource to something like "This.parent.GetTheText()" but I always get an error that the method "GetTheText()" does not exist. Perhaps "This" is not usable in the expression so I wondered how this can be done.
>>>
>>>The expression used is relative to the column, i.e. in it "this" means "this column". Start from there when counting parents.
>>
>>Or, you could just bigger hammer it and drill down starting with Thisform.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement