Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP team welcomes feedback and discussions on Sedna
Message
De
07/06/2005 16:43:41
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
VFPX/Sedna
Divers
Thread ID:
01020020
Message ID:
01021132
Vues:
18
Simon,

This.Parent.Method() doesn't work? I don't remember if I've tried that before.

>
>Yes your solution does work but it requires method calls to the form. I am using containers as the basic presentation object which are added to generic forms at runtime. Therefore, I do not have the option to put the methods in the form. Therefore, I have to have some work around because there is no ThisGrid reference that will work in the ControlSource property so that the method call could be part of the grid itself and more self contained.
>
>I could try to develop a standard form method that could figure out what grid to access to get the required data. I will play with it and see what I can do.
>
>Thanks,
>Simon White
>
>
>
>
>>Simon,
>>
>>A method call works for me. One of my grid columns has a ControlSource of thisform.catname(ditems_v.catgry).
>>
>>>
>>>As far as Calculated Fields go you can do as you suggested but this is of limited use. I often use a Method to return the data I wanted displayed because I may have to use data combined from several tables requiring the use of the Seek() function etc. In the past if the string you assigned to the ControlSource approach 200 or so characters strange things began to happen in the grid. It would be much better if you could simple set the ControlSource to call a method directly then you are free to do what ever you can imagine.
>>>
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform