Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox in grid dynamically change the caption
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01686606
Message ID:
01686623
Vues:
26
>Nothing. Even if I have the code as you show above (thisform.SetCaption), I need to specify inside the function .SetCaption() the code to set the caption. Example, from your code:
>
>thisform.Grid1.ColUMN1.Check1.Caption = ALLTRIM(Test.Fld2)
>
>How does this function "know" the Column#?

It doesn't you hardcoded it.
Or you could pass parameter, but then you should do something like this:
thisform.Grid1.Column1.DynamicBackColor = "thisform.SetCaption(1)"
thisform.Grid1.Column2.DynamicBackColor = "thisform.SetCaption(2)"
...
thisform.Grid1.ColumnN.DynamicBackColor = "thisform.SetCaption(N)"
and the method:
** SetCaption method
LPARAMETERS lnColimnIndex
thisform.Grid1.Columns(m.lnColimnIndex).Caption = "asdasdasdas"
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform