Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Object referenceing
Message
De
25/10/1999 20:17:42
 
 
À
25/10/1999 13:49:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00281091
Message ID:
00281326
Vues:
12
ThisForm.This doesn't really make sense. ThisForm points to the current form, so, ThisForm.This is (kind of) ThisForm, too. I don't know why it works in the first case.

Probably the best way to reference this would be: ThisForm.TabName

Vlad

>I have created a new class that is based on control. Within this class I have a textbox and a listbox. I gave the container a new property also. The listbox.rowsource references this new property: ie. list1.rowsource = thisform.this.tabname.
>
>And that part works.
>
>
>I also want the textbox's controlsource property to reference the control's new property: ie.
>text1.controlsource = thisform.this.tabname.
>
>But with that it bombs out... the error I recieve is 'Unknown member THIS. Unbinding object text1'
>
>Why would it work with the listbox and not the textbox?
>
>I have also tried: text1.controlsource = this.tabname
>
>I recieved: "Property TABNAME is not found. Unbinding object text1"
>
>Thanx,
>
>
>
>Michael Mead
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform