Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Caption not updating when...
Message
De
04/11/1998 23:32:35
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Caption not updating when...
Divers
Thread ID:
00154660
Message ID:
00154660
Vues:
51
Kevin,

Here is what I am doing.

I the init of my form class... which is a subclass of CBizObj I am doing a for loop though the forms collection, in reverse. If I find a form that had the same cfindform value I set cFindUniqueID of the form that is initing to uLastFoundID of the form that I found. I assume that after the init finds the FindProcess will find since I have populated cFindUniqueID.

Well... that seems to work, but the caption does not get updated.

Funny thing is, it does get updated if I just call the find form from the form in questions... My code is like...

nFormCount = goApp.oForms.GetObjectCount()

for x = nFormCount to 1 step -1
oformRef = goApp.oForms.Get( x )
if oFormRef.cFindForm = this.cFindForm and oFromRef.class <> this.class
this.cFindUniqueID = oFormRef.uLastFoundID
this.cPersonName = oFormRef.cPersonName
this.cPersonStatus = oFormRef.cPersonStatus
next x

************
There is a bit more error checking, but that is about the most of it... It does pull the data in properly, however, as I said, the caption was not edited... I had to add...

this.ChangeFormTitle(this.cPersonName)
**************

BTW: The primary biz objs GetBizObjDesc has this code in it...

return cPersonName

Thanks,
BOb
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform