Information générale
Catégorie:
Codage, syntaxe et commandes
>Sure that the control is on the page?. With page1 I often find that the control is not really there but it "looks" like being on page1. I usually check it with the object picker.
>
>>I had a really wierd problem yesterday. I had code in the activate of a page frame page, (page1) that was on another page of another page frame. On this page I had a control (lstexp). In the activate of the page I had this.lstexp.somemethod(). I said member not found. In debugging. So the activate of Page1 said this.lstexp.somemethod(). I got an error Member not found. Odd, because it was on that page. So I added ox = this and then ox.lstexp.somemethod(). Same problem. When I debugged ox, it referenced the pageframe, not the page. So, although this was on the activate of page1 of the pageframe. This referenced the pageframe. Messy.
>>
>>Has anyone else seen this behaviour?
It was there alright, because the code executed twice, once cleanly, the next time not so good! The first time, this referenced page1 (as it should) the second time - in the same method! - this referenced something (the pageframe) that was really not this!
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement