Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Where to add a FOR loop to update a grid?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00255835
Message ID:
00255930
Vues:
26
>I have this so far in the grid.init
>
>For i= 1 to This.columncount
>*-- create strin for column #
> mpre="This.Column"
> mpost=".Text1.dblclick()"
> mstr1=mpre+alltrim(str(i))+mpost
>*-- verify count is correct
> Wait wind mstr1
>
>*ThisForm.pgfBizObj.ActivePage = ThisForm.nGoToPageOnEdit
>Endfor
>
>
>I cant seem to figure out how to add the last commented line?
>
>My with / end with didn't work.
>
>TIA
>
>__Stephen

You can't add code to a method at runtime. You'll have to wither manually add this code to each textbox in the grid, or create a textbox class that has this code in it, and loop through the columns at runtime, adding this subclassed textbox and removing the stock textbox.
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform