Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object referenceing
Message
From
25/10/1999 20:17:42
 
 
To
25/10/1999 13:49:58
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00281091
Message ID:
00281326
Views:
13
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
Previous
Reply
Map
View

Click here to load this message in the networking platform