Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Classes, subclasses and accessing tables or fields
Message
 
 
À
18/09/1996 18:24:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00008145
Message ID:
00008151
Vues:
32
>>>If i've got some code like
>>>
>>> THIS.Value = abbrev.DESCRIPT
>>>or
>>> USE abbrev
>>>
>>>in a class based on a textbox where the field or table may vary depending upon which form i place this class is there a way to set or pass these on the inherited class so that the ancestor class can use them?
>>>
>>>I thought I passed Inheritance 101 <s>
>>>
>>>Thanks, Kim
>>
>>Hope I am in the ballpark -- Scope resolution operator?
>>
>>Class::method()
>>
>>HTH,
>>Tom
>
>I don't think so, isn't scope resolution just a means to call ancestor script?, sorry my message wasn't too clear.
>
>Let's say the class is lookup_textbox:
>
>Where some method contains
> ...
> USE x
> ...
>
>Place the object lookup_textbox on two different forms:
>
> lookup_textbox on FORM A we want x to be table A
> lookup_textbox on FORM B we want x to be table B
>
>Can I set a variable or property somewhere that identifies what lookup_textbox is to use for table x.
>
>Hope this clarifies.

May be you can try add other property to textboxclas TableActive
method will contain something like:
USE (This.Parent.TableActive)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform