Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Find object in pageframe
Message
From
21/10/2003 11:43:51
 
 
To
21/10/2003 11:21:13
Victor Verheij
International Film Festival Rotterdam
Rotterdam, Netherlands
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00840669
Message ID:
00840696
Views:
25
ok, then

Sounds like there is only one of these listsboxes per form, and that this form is specifically designed for using a certain set of objects.
Assuming that, for the form class used for this type of form, add an object property to refer to this listbox. Set the reference in the listbox.init().
e.g.
** listbox.init()
** assume the thisform.oContactList property exists on the form
thisform.oContactList = this
in the code that triggers the change, refer to the form.oContactList instead of trying to find the listbox.
Since this is an object reference property, make sure you set it to .null. in the form.Destroy(), e.g.
** form.Destroy()
this.oContactList=.null.
HTH

>Sorry i was mistaken, the event is called from a programatic change event.
>There are two forms, one to search in and one to show details about the found record in the search form.
>
>The search form puts a nID_number in a textbox.value on the detail form.
>The programaticChange event from the textbox refreshes the form.
>
>For example, in the searchform you can look up the name of a person. The detailsform shows the details about this name (triggerd by the programaticchange event).
>
>The listbox is going to be used to list all contacts of this person.
>
>I'm afraid the techniques used (above) are not my choice.
>To throw the thing out and start over isn't an option. (yet)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform